Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Show variable set based on variable

DB1
Tera Contributor

Hello All,

Requirement:

There is a variable name "emailid"(blue highlighted) and there is a variable set (orange highlighted) with multiple variables - name "Demo_variable_set".

DB1_0-1678635278743.png

 

I need to show the variable set only if the emailid variable is filled(is not empty). I tried UI Policy to achieve the same. However it is not working.

Below is the UI Policy I tried with a condition

 

DB1_1-1678635542572.png

Need help to show the variable set only when the emailid Variable is filled

 

TIA.

@Ankur Bawiskar @Allen Andreas @SatyakiBose @Community Alums @newhand 

 

 

 

1 ACCEPTED SOLUTION

Allen Andreas
Tera Patron

Hi,

That's also because you have the other fields mandatory (you can't hide fields if they're mandatory), you would need to also set those fields to mandatory = false in in your UI Policy.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

3 REPLIES 3

Allen Andreas
Tera Patron

Hi,

That's also because you have the other fields mandatory (you can't hide fields if they're mandatory), you would need to also set those fields to mandatory = false in in your UI Policy.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Ankur Bawiskar
Tera Patron
Tera Patron

@DB1 

please check point mentioned by Allen.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

DB1
Tera Contributor

It worked! Thank you @Allen Andreas  and @Ankur Bawiskar