- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2015 07:24 AM
I'm using a client script to hide/show variables on a record producer based on the selected value of a dropdown box. For one selected value, the layout of the form is off due to the fields that are hidden (read: too much white space between fields). Is it possible to change the order of variables on a record producer using a script so that the layout remains pleasing?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2015 07:49 AM
Hi ChadlockWood,
I am assuming you are using g_form.setVisible(fieldname,boolean) in the client script. If yes, then please switch to g_form.setDisplay(fieldname,boolean)
GlideForm (g form) - ServiceNow Wiki
Please let me know if you have any questions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2015 07:49 AM
Hi ChadlockWood,
I am assuming you are using g_form.setVisible(fieldname,boolean) in the client script. If yes, then please switch to g_form.setDisplay(fieldname,boolean)
GlideForm (g form) - ServiceNow Wiki
Please let me know if you have any questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2015 07:57 AM
Pradeep
That was exactly the solution and in record time! This community is amazing.
Thanks for your help,
Chad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2015 11:22 AM
Perfect
I am glad I can be helpful