How to hide mandatory variable

krishna87654
Kilo Expert

How to hide mandatory variable in catalog item. This variable is mandatory in variable set

1 ACCEPTED SOLUTION

krishna87654
Kilo Expert

It is working with UI Policy with condition Mandatory, visible, read only to false.


View solution in original post

20 REPLIES 20

It is working with UI Policy with condition Mandatory, visible, read only to false.

Hello Krishna,

Did you make it Un-Mandatory before hiding?

And is my answer help to solve the question?

Regards,

Yash Agrawal

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

If you want it as mandatory then why to hide it?

If you still want to hide it then you will have to set some value and then make it hidden.

Regards
Ankur

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

Hi Ankur,
I want to hide this variable for particular item. 

Regards,
Krishna N.

Hi Krishna,

use onLoad catalog client script

then please set some value inside it and then hide it

Regards
Ankur

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