Please help with Client Script to hide a text box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 12:37 PM
Hello,
I have the following 2 variables on a Catalog Item.
- Single Row Variable Set
- Single Line Text Variable
I need help on Client Script if Single Row Variable is empty, hide the Employee ID Text Box else don't hide it.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 12:41 PM
You can use a UI policy for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 12:53 PM
I need to check if the "Also request for" field is empty, then hide the text box. I was not able to do it in UI Policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 02:47 PM
in the UI policy add in the condition
"who is this request for is Not Empty
Or
"Also Request For" is Not Empty
make the field visible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 05:47 PM
You can do something like this, pls try it and let me know if it works (I have tried in my PDI it worked well):
Please ensure that update the field names according to your variables
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact.