- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi ,
I have below catalog with mentioned select box type variable . I want to show a field message when " add" is selected on that variable . I have tired the below Onchange catalog client script but couldn't get the result .
Please suggest what changes should I make to achieve this ?
Thank You
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Please select UI Type as All.
Also, could you post a screenshot of whole Client script. I guess this is the only issue - UI Type is not selected as all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
alert didn't come?
if yes then your client script config is wrong.
client script is marked as Applies on Catalog item view right?
if not then it won't run
share client script config screenshot
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @1_DipikaD
Try few things:
1. Try using == 1 instead of === '1' and check for an alert.
2. Check the correct value of the dropdown choice list.
3. check if "request_type" field is visible on the form, try using alert first and then show field message.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Thanks,
Brahmjeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @BrahmjeetTanwar ,
Tried as you said but couldn't get the desired result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Could you please share the screenshot of client script and the variables as well with their backend name along with values?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago