Making a field Visible based on an option selected on another field on the form

MU1
Tera Contributor

Hi All,

I'm trying to make a field appear based on an option selected for the field "Disciplinary issue reasons" which is a reference field.

find_real_file.png

 

Referring to the above screenshot, "Please provide more information" is a custom string field, that I want to display only when the "Disciplinary issue reasons" contains Other.

 

One of the ways I'm trying to implement this, is by creating a UI Policy that runs on when the field "Disciplinary issue reasons" contains "Other" with the Script below.

 

find_real_file.png

 

 

find_real_file.png

I also tried creating a Client Script but didn't work as well.

Will appreciate any help. Thanks!

1 ACCEPTED SOLUTION

Ishita Shrivast
Kilo Guru

Hi there,

Try to create a onChange UI Policy Action ,setting "Please provide more information" field as visible true and enable the "Reverse if False" true.

I hope this will resolve your issue. If so, then please mark it as correct and helpful.

Thanks and Regards,

Ishita Shrivastava.

View solution in original post

5 REPLIES 5

Prithviraj Howa
Kilo Expert

Hello,

You are saying "Disciplinary issue reasons" field is Reference field. So in that reference field should contain "other" as a record, like this. I have made in cmdb_ci reference table.

 

 

After selecting "other" in "Disciplinary issue reasons", "Please provide more information" field get auto-populated

 

Then simply apply UI Policy on that. 

Please mark reply as Correct/ Helpful, if applicable. Thanks!

If not then please let me know.

Warm Regards,

Prithviraj Howal

SNOW Developer