Change the order of form variable using scripting

Sourabh18
Giga Contributor

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?

7 REPLIES 7

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Megha Padale
Giga Guru

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

https://community.servicenow.com/community?id=community_question&sys_id=4a174fe5db1cdbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=e5896380dba37780d58ea345ca96...

https://community.servicenow.com/community?id=community_question&sys_id=3649fd16dbb4db404837f3231f96...

If my answer helped you in any way, mark answer as helpful and correct.

Thanks and regards,

Megha.

 

 

 

Sourabh18
Giga Contributor

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. 

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

https://snprotips.com/blog/2016/1/19/using-syspopup-view-to-customize-flyoutpopup-info-on-reference-...

https://community.servicenow.com/community?id=community_question&sys_id=ce8a249bdb6ca308200f0b55ca96...

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader