
- 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 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
‎06-13-2018 10:14 AM
Hi Peter,
Is it possible to do this for a scoped application?
Cheers,
Nabeel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2018 06:38 PM
In Kingson, g_form.setVisible works correctly (reclaiming the white space), so I think this is a bug that's been quietly resolved in the background

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 06:11 AM
I deserve some credit too in resolving your problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2018 10:39 AM
I found a hidden gem in the service catalog's implementation of g_form today. setContainerDisplay: Can be used to show/hide an entire section and it works inside application scopes.
Example:
g_form.setContainerDisplay('user_info', false);
Since it is undocumented, it might go away at any time. Good luck!