- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 11:19 AM
Hello Team,
We have created catalogue ITEM, for dynamic field value selection. I wrote a catalogue Client script, when I checked the "request type" field values, these are displaying in the Alphabet order some time and some time displaying based on Order number. I would like to display values order wide not in alphabet wide. Please help on this.
Based on Order :
Based on Alphabet :
I wrote catalogue client Script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 12:14 PM
Hi @B Ashok ,
Can you try below code,
g_form.addOption('var_3', 'choice_1', 'Choice1', 1); g_form.addOption('var_3', 'choice_2', 'Choice2', 2);
for reference developer portal link - https://developer.servicenow.com/dev.do#!/reference/api/xanadu/client/c_GlideFormAPI#r_GlideformAddO...
Please mark the correct answer if this solve your issue
Regards,
Amol Bavaskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 11:28 AM
Hi Ashok,
I found a community post with similiar query, have a look and try if it fixes your issue.
If this works kindly give a thumbs up and mark it as answered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 12:14 PM
Hi @B Ashok ,
Can you try below code,
g_form.addOption('var_3', 'choice_1', 'Choice1', 1); g_form.addOption('var_3', 'choice_2', 'Choice2', 2);
for reference developer portal link - https://developer.servicenow.com/dev.do#!/reference/api/xanadu/client/c_GlideFormAPI#r_GlideformAddO...
Please mark the correct answer if this solve your issue
Regards,
Amol Bavaskar