Client Script Down drop Options not coming in Fields ATF

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 12:20 AM
Hi Everyone,
We were trying to create an ATF, for Interactions. In the Type field we have added One option as "Walk-in" and Removed options as "Messaging" and "Video" using Onload Client script,
While perform ATF for interaction to check the case, we are not getting the option the I have added, and default options are the only options available to select.
Is there any way to test in the ATF for those cases?
client script that I used to remove is below
function onLoad() { //Type appropriate comment here, and begin script below g_form.removeOption('type','video'); g_form.addOption('type','Walk-in','Walk-in'); g_form.removeOption('type','messaging'); }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 12:56 AM
There would be a rule that specific role user can only see these list of values.
Kindly check with the same user.
***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
***********************************************************************************************************************
Regards
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 01:02 AM
@Community Alums
I doubt you can test this as you are hiding the options when form loads and ATF won't know this while you configure the step.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader