Change the order of form variable using scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2020 11:02 PM
Hi,
Can anyone tell me how to change order of form field variables using scripting? Is there any chance that we can change the order of form variables using UI policy or client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2020 01:27 AM
Yes, sys_popup view is also created.If we open reference icon pop up on Catalog item then sys_popup view is visible. But it is taking default view if we open reference icon pop up on RITM summary. That's why I came up with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2020 02:52 AM
Hi,
please share screenshot where this is happening
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2020 01:38 AM
Hi S
By default, the order the variables appear in the catalog item (as numbered using the order field in the variables) is how they appear in the requested item. I recommend changing the order of the variables in the catalog item definition. Changes will not impact existing records, only records going forward.
I would say best option would be to customize the Server script on the widget and perhaps be able to manipulate the order field from there.. but it's a lot of work for 2 variables in one item. I would rather just create them manually instead.
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat