
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 04:33 PM
I'm looking to show/hide form content based on changes on a form (including show/hide of related lists) and would like to use setDisplay (because it reclaims white space on a form), but only setVisible seems to work (which leaves white space), setDisplay fails.
g_form.setVisible('short_description', false); //works
g_form.setDisplay('short_description', false); //doesn't work
Any ideas?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 11:24 PM
Thanks for all the suggestions.... I've gone with a global UI policy. I had hoped to be able to do this from within an application scope, but it simply wasn't possible.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 06:47 PM
I think you are setting the display of field to false from a different application scope

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 07:01 PM
Yes... it's strange how the setVisible works from a different application scope, but not the setDisplay.
Is there any way to override this behavior?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 07:08 PM
Peter,
Try changing your application access settings

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 07:12 PM
Go thru this link. Allow access from all the application scopes
Application Access Settings - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 05:24 PM
You can take the id of short description and document.getElementById("I'd").display:None;
it may works for your code.