Oracle CRM On Demand Desktop Administration Guide > XML Files Reference > XML Code to Customize Forms >

Script Element of the forms_xx.xml File


The script element stores all JavaScript functions that Oracle CRM On Demand 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 element.

Example Code of the Script Element

The following code is an example of the script element:

<script>
<![CDATA[
   include("forms.js", "forms");
   var ctx = {
   "application": application,
   "ui": ui,
   "application_script": application_script,
   "form": form
   };
   var current_form = new forms.contact_note(forms.create_form_ctx(ctx));
]]>
</script>

Oracle CRM On Demand Desktop Administration Guide, Version 5.2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices.