function onChange(control, oldValue, newValue, isLoading, isTemplate) what is isTemplate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2016 05:15 AM
what is the use of isTemplate?
@
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2016 05:28 AM
If the form you are using applies a template, it will ignore this client script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2016 05:28 AM
That parameter is a boolean that says "This form was loaded using a template."
Creating a Template - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2016 06:18 AM
Thanks ctomasi for your helpful reply . What the below function is returning with isTemplate?
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
var a=g_form.getDisplayBox('caller_id').value;
var num=g_form.getDisplayValue('number');
alert('hello'+a+','+num);
alert('oldvalue'+oldValue+','+newValue)
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2016 06:19 AM
Hi Sonam,
isTemplate - It identifies whether the change on the form occurs as part of a template load or not.
Client Scripts - ServiceNow Wiki
Please let me know if you have any questions.