On change client script in reference Field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello Team,
Is it possible to use on change client script on reference variable ..??
Requirement : If we select the country as UK in country variable (reference variable) in the category variable "autopay "option should be hidden category is also a reference variable can anyone suggest how to achieve this without using/updating the reference qualifier is there any other solution..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
yes this is possible and you can add/remove options using OOTB g_form method
g_form.addOption(), g_form.removeOption()
reference qualifier won't work for drop down variable
what did you start with and where are you stuck?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello
As you have mentioned "reference qualifier won't work for drop down variable" its not a drop down both are reference variables 1.Country ( reference) 2.Category (reference) I guess add option remove option wont work on reference variables. Reference qualifier script is the solution i guess do we have any other solutions ..? can we achieve this without using the reference qualifier..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @Ankur Bawiskar
As you have mentioned "reference qualifier won't work for drop down variable" its not a drop down both are reference variables 1.country( reference) 2.Category( Reference) i guess add option and remove option wont work on the reference variable can you suggest me any other solution without updating reference qualifier script how can we achieve this is this possible..?
