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

 

 

12 REPLIES 12

@Ankur Bawiskar 

It is bit urgent can u help on this 

@ShaziyaS4380655 

logic is simple if you use onChange

1) in onchange client script see what's the newValue

2) if it matches show other fields and make mandatory

3) in the ELSE part do the reverse

💡 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

@ShaziyaS4380655 

Thank you for marking my response as helpful.

💡 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