- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 04:52 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 05:12 AM
You client script is working fine with provided script,
Check if you have configured UI Type, Type, Field name for on change condition and field names used for property, property subcategory in the client script and their values are correct.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 05:00 AM
Hi @Jyothsna5 ,
The main cause is that in g_form.setValue() you’re passing three parameters.
In ServiceNow’s g_form.setValue() method, only two parameters are supported for a normal variable or field.
If this response helped, please mark it as the correct answer so it can help others as well.
Thank you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 05:00 AM - edited 08-05-2025 05:01 AM
Hello @Jyothsna5,
Can you please provide more information?
What's not working in your client script?
And, in your g_form.setValue() method use two parameters only.
If my response resolved your query, kindly mark it as Accepted and Helpful for future reference.
Best Regards,
Anshul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 05:12 AM
You client script is working fine with provided script,
Check if you have configured UI Type, Type, Field name for on change condition and field names used for property, property subcategory in the client script and their values are correct.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 06:11 AM
Thank you Bhuvan