Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2019 01:36 AM
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2019 04:44 PM
Check below article.
The onChange function is automatically passed five parameters by ServiceNow. Although you do not need to do anything to pass the parameters, you can use them in your script.
- control: field the Client Script is configured for.
- oldValue: value of the field when the form loaded and prior to the change.
- newValue: value of the field after the change.
- isLoading: boolean value indicating whether the change is occurring as part of a form load. Value is true if change is due to a form load. When forms load, all the field values on the form change as the record is loaded into the form.
- isTemplate: boolean value indicating whether the change occurred due to population of the field by a template. Value is true if change is due to population from a template.
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2019 04:44 PM
Check below article.
The onChange function is automatically passed five parameters by ServiceNow. Although you do not need to do anything to pass the parameters, you can use them in your script.
- control: field the Client Script is configured for.
- oldValue: value of the field when the form loaded and prior to the change.
- newValue: value of the field after the change.
- isLoading: boolean value indicating whether the change is occurring as part of a form load. Value is true if change is due to a form load. When forms load, all the field values on the form change as the record is loaded into the form.
- isTemplate: boolean value indicating whether the change occurred due to population of the field by a template. Value is true if change is due to population from a template.
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2019 03:30 AM
thank you