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-11-2023 08:40 AM
Our use case this when there are more users, we pop up a set of questions or a message telling them what to do next. If there are no additional users (The field is empty). Don't show any questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2023 09:29 PM
Hi Lisa,
The simplest way is you need to create UI policy put condition when "Also Request For" is empty and set "Employee ID" field is visible false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 08:47 AM
First of all I sincerely thank everyone for your suggestions and helpful. I have reached out the SN support and here is the answer I got back:
As I mentioned previously, if you could follow the below steps and create it in your PDI and let us know if how it goes.
1. Create a Single Row Variable Set
2. Create "Request for" type variable in side of Single Row Variable Set
3. Under "Type Specifications" Tab, Select "Enable also request for" check box
4. Create a Single Line Text Variable
5. Use UI policy and see if you can hide the "Also request for" field.