how to avoid the space while made field invisible through client script?

Akshaya14
Tera Contributor

Hi, 

In my on change client script based on condition another variable should be invisible but it leave the space. How to avoid this?. please help me resolve this

Akshaya14_0-1665555660574.png

Akshaya14_1-1665555681449.png

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

HI @Akshaya14 ,

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() in your script to hide the fields instead of setVisible

View solution in original post

2 REPLIES 2

Vaibhav Dane
Tera Expert
Tera Expert

Hi,

 

Can you please share the script as well.
Have you used setDisplayValue or setVisible in your onchange client script?

You can also try the UI policy as well.

 

Regards,

Vaibhav Dane

Community Alums
Not applicable

HI @Akshaya14 ,

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() in your script to hide the fields instead of setVisible