Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Issues with fields on catalog item

ShaziyaS4380655
Tera Contributor

Hi Experts,

@Ankur Bawiskar 

i have a field 'Request Type' on my catalog item , which is a dropdown, based on the request type we are showing and hiding the fields , and for one choice option of request type is udl changes , if i select that it should show me the mandatory and non mandatory fields , but instead on first selection it shows only mandatory fields and then changing other option and if the select udl changes option again then it is showing all the fields which are needs to be shown    , i have written ui policy and configured ui policy actions for these , but if i select udl changes option , can let me know how this can be fixed, below i am attaching SS , on first selection it shows mandatory and then selecting again it shows 

ShaziyaS4380655_0-1762410515952.png

ShaziyaS4380655_1-1762410581417.png

 

 

10 REPLIES 10

@ShaziyaS4380655 

your question is not clear.

Please phrase this properly along with the catalog UI policy condition etc

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

from the screenshot request type is drop down field , when i select initially "UDL changes" option , it only shows mandatory fields ,(as shown in picture 1) , when i again change the request type to some other and then again select "UDL changes" then at the time all the fields are shwowing , but not the first time.

 

into the script i have shared , there are the other variables too i have to hide for that particular request type because in this catalog item  i have used 4 variable sets and hiding the variables which are not required for this request type

@ShaziyaS4380655 

make sure onLoad checkbox is True on your catalog UI policy if the drop down has a Default value of UDL changes when form loads

Also ensure Reverse if false is checked so that the reverse action happens in UI policy.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Ankur Bawiskar 

yea those changes are already there , but udl is not default , NONE is default but  when i change it from none to default it only shows mandatory fields , for the second time it is showing the all the fields that are supposed to be displayed , is this anytrhing with the servicneow behaviour

@Ankur Bawiskar 

here i ahve shared my query again , can u siggest any modifications