Please help with Client Script to hide a text box.

Lisa Goldman
Kilo Sage

Hello,

I have the following 2 variables on a Catalog Item.

  1. Single Row Variable Set
  2. Single Line Text Variable

LisaGoldman_0-1691523288638.png

 

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

 

12 REPLIES 12

Peter Williams
Kilo Sage

You can use a UI policy for this

@Peter Williams 

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.

 

LisaGoldman_0-1691524348742.png

 

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 

 

Prince Arora
Tera Sage
Tera Sage

@Lisa Goldman 

 

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

 

PrinceArora_0-1691541940434.png

PrinceArora_1-1691541975296.png

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.