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-18-2020 11:09 PM
Hi there,
Can you clarify what you are after? And you mention form field variable... what is it, field or variable?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 11:27 PM
Hi,
Can you explain your requirement in detail, is it for record producer?
You can use g_form.setDisplay(fieldname,boolean)
GlideForm (g form) - ServiceNow Wiki
you can check these links, it looks similar to your thread
If my answer helped you in any way, mark answer as helpful and correct.
Thanks and regards,
Megha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 11:31 PM
I have default form layout have multiple fields on it. This form is visible on reference icon pop up on RITM summary. I want to show only selected fields in reference icon popup. So using UI policy I hid some fields that I don't want. Only issue is I just want to change order of fields.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 11:48 PM
Hi,
you need to configure the sys popup view on that table which is being referred by that field
and then show only those fields you want in that view
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader