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

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.

Hi,

please share screenshot where this is happening

Regards
Ankur

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

Gaurav Shirsat
Mega Sage

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.

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

 

Please Mark Correct and Helpful

Thanks and Regards

Gaurav Shirsat