Siebel CRM Desktop for Microsoft Outlook Administration Guide > XML Files Reference > XML Code to Customize Forms >

Script Tag of the forms_xx.xml File


The script tag stores all JavaScript functions that Siebel CRM Desktop uses in the user interface of the current form. You can use these scripts for different purposes, as required. You must describe all script functions in the CDATA section of the validation_rules tag.

Example Code of the Script Tag

The following code is an example of the script tag:

<script>

<![CDATA[

function form_open()

{

form.NoteType.required = true;

}

function form_save()

{

if (form.item["Created"] == null)

{

form.item["Created"] = (new Date()).getVarDate();

}

}

]]>

</script>

Siebel CRM Desktop for Microsoft Outlook Administration Guide Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.