Can we have two Client scripts on the same record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2025 10:53 PM
I have a doubt which goes like this:
1. I have a client script onchange to run a script like when the channel is changed the category have only one set of options.
2. And at the same time I am running another onChange client script like when the category is changed the subcategory should contain only a set of options.
Is there any way to achieve this both in the default view form as well as the worksapce view form of Incident record. And If possible provide some example scripts.
Note: the client script should act at the same time when the user interacts on the incident record.
Thanks in advance,
Saideepakk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2025 04:04 AM
Hi @SaiDeepakk ,
You can do this with two simple onChange client scripts that add/remove choice options. Make them run in both classic form and Workspace by setting UI Type to "All".
If your fields are choice lists, use g_form.clearOptions() 'and'.
If they are reference fields, use a reference qualifier script.
