How to Remove blank spaces after set Visible(false)

Swarnika1
Tera Expert

Hi all,

In my catalog form I am writing onLoad() client script. When requested for is empty all other fields are hidden but the form shows spaces for those fields. Can anyone please help me how to remove these,

find_real_file.png

 

 

1 ACCEPTED SOLUTION

HarshTimes
Tera Guru

Use setDisplay() in your script to hide the fields .

View solution in original post

3 REPLIES 3

Matthew Glenn
Kilo Sage

If all you're doing is hiding fields, you should really use a UI Policy as opposed to a Client Script.

If you must use a Client Script, try using setDisplay instead of setVisible

HarshTimes
Tera Guru

Use setDisplay() in your script to hide the fields .

thanks, it worked!