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-13-2025 11:31 PM
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
06-08-2025 05:45 AM - edited 06-08-2025 05:46 AM
Hello @ahmadfaiz20
please try to check manually before this and some times it will checks on OnChange(as negative scenario) and this client script run on onload so whenever changes happened it will show only default choices because your client script is onload only.
and please check the some client scripts that are conflicting or not on this table
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2025 08:10 AM
Hi @ahmadfaiz20 ,
on which ATF step are you trying to select the option as “Walk-in”. If you’re using Set Field Values step, then the choices are read from sys_choice table and not from onLoad Script.
if you want test choices visibility in ATF, open the record and then use Click Custom Component step