ServiceNow Application Development by Sagar Gupta

ServiceNow Application Development by Sagar Gupta

Author:Sagar Gupta
Language: eng
Format: epub, azw3
Tags: COM051000 - COMPUTERS / Programming / General, COM091000 - COMPUTERS / Cloud Computing *, COM088000 - COMPUTERS / System Administration / General
Publisher: Packt Publishing
Published: 2017-09-25T09:39:57+00:00


The onChange event handler defined in the client script must execute, which in turn will use the toTitleCase function defined in the global UI script to change the field's value to camel/title case, as shown here:

Disabling client-side scripts

There may be times when we want to disable a particular client-side script. To do this, all we need to do is uncheck the Active field for the record. The script definition will remain in the system; however, it will not be attached to the form and execute.

For example, let us disable the Change short desc to title case client script. Open the appropriate record in the Studio using the application explorer on the left.

In the form that will open in the content area of the Studio, uncheck the active field and click on the Update button. Now when you change the Short description field, in the Booking Request form, the onChange client script will not execute, as it marked as inactive. We can mark it as active whenever we wish but for now let us leave it as inactive.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.