- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 11:21 PM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 12:19 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2022 11:45 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 12:19 AM
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