setVisible works, but setDisplay doesn't

petercawdron
Kilo Guru

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?

1 ACCEPTED SOLUTION

petercawdron
Kilo Guru

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.


View solution in original post

14 REPLIES 14

Abhinay Erra
Giga Sage

Is this the same behavior in all browsers?


Good question. It's the same in Chrome and IE (Edge version 25.10xxx)


Open the browser developer tools, now trigger that script and see if you can find any errors on the browser console.


ah, yes... I'm getting... "Display false not set on field test_description: cross-scope access denied."