Variable getting visible even after applying the UI policy

Roshini
Giga Guru

I have a requirement to give 5 variables as checkbox under a label named " enviornment" and this label and checkboxes should be visible only if request type is "add".
Selection is mandatory for the checkbox.

below are the variables summary
request type -select box -Add,delete,update (value)
Environment -label

prod-checkbox
dev-checkbox
test-checkbox
uat-checkbox
qa-checkbox

i created a Ui policy with condition as request type is add and in the UI action have provided the checkbox values as visible.
But when loading the form am getting the label and any random value which i made in UI action coming up before selecting the environment.
Ho to make the label and field visible only once the request type is selected. If no value is selected (request type is none) then environment label and checkboxes should not be visible.

1 ACCEPTED SOLUTION

G Ponsekar
Giga Guru

Hi @Roshini ,

 

Can you check whether you have marked label or checkboxes as Mandatory in Variable level. If so, remove it and Make the Environment label mandatory and Visible only in UI policy

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

 

 

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Roshini 

please share UI policy you configured screenshots

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

G Ponsekar
Giga Guru

Hi @Roshini ,

 

Can you check whether you have marked label or checkboxes as Mandatory in Variable level. If so, remove it and Make the Environment label mandatory and Visible only in UI policy

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP