variable option hiding based on another variable options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 10:59 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 11:06 PM
Hello,
As this is simple thing hence don't want to spoon feed you, kindly check below links you will get the idea. it's simple.
https://www.basicoservicenowlearning.in/2023/08/servicenow-choice-list.html
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 11:11 PM
Hi Aditya,
Pls confirm where did you appied on change client script?
are terminate and new options of mobile variable?
also pls attach the screenshot of client screen page, and portal page for better understanding.
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Pankaj Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 11:35 PM
Hi @Aditya02 ,
can you validate the field name and choice value.
please see below examples
g_form.addOption(fieldname, choiceValue);
ex: g_form.addOption('state', '4');
g_form.removeOption(fieldname, choiceValue);
ex: g_form.removeOption('state', '5');
ServiceNow Community MVP 2024.
Thanks,
Pavankumar