- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 06:32 PM
Hi everyone,
We have a Catalog Item that has a lot of variables, and we want to hide specific ones from certain users when viewing the Requested Item. The only way to hide those variables in the Variable Editor Formatter is through Catalog UI Policy or a Client script but the issue is that those variables we hid using Client script still shows up for half a second during form load.
A band-aid solution I thought of is to disable scrolling when the form loads? Something like adding css
overflow: hidden;
to disable scrolling until the Client script finishes hiding certain variables. But couldn't get it to work.
Any ideas on how to disable scrolling? or my issue in general?
Thanks for the assistance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 07:31 AM
If you check the Hidden box then they are hidden on load. Then you can use your script to show them for the people who should see them and leave them hidden for the people who should not. Your hole issue is that you do not want them seen while the page loads and the is what the "Hidden" checkbox is for as I understand it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 11:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 04:46 PM
Thanks for the reply!
Unfortunately, I need to hide the variables conditionally based on current user which is why I used a Catalog Client Script. My issue is that Catalog UI Policies and Client Scripts takes a split second to execute during form load. This means that users would catch a glimpse of hidden variables for a split second, possibly even note all the hidden variables if they refresh the form and take advantage of that split second enough times.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 07:31 AM
If you check the Hidden box then they are hidden on load. Then you can use your script to show them for the people who should see them and leave them hidden for the people who should not. Your hole issue is that you do not want them seen while the page loads and the is what the "Hidden" checkbox is for as I understand it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2024 04:37 PM
Thank you so much! This was the solution haha
I was under the assumption that if a variable has "Hidden" checkbox, it can't be show through Client Scripts. Thanks again!