UI Action or UI Policy?

DeIvory Gordon
Tera Guru

Hello,  I created a new catalog item and one of the fields is, "Is there a different Ship To Location?" If "Yes" I need a new field to populate that  reads, "Enter shipping address".  I am not sure if this should be a UI Action or UI Policy and the steps to achieve.  Thanks!

4 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron

Hi @DeIvory Gordon 

 

It is use case of UI policy, where you want to show a hidden field.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Ankur Bawiskar
Tera Patron

@DeIvory Gordon 

UI action is not for catalog item.

If you want to show/hide another variable based on value of previous variable then -> UI policy or onChange catalog client script

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Srikanth_9
Mega Sage

Hi @DeIvory Gordon,

 

Use Catalog UI Policy - If you want to show/hide a field based on conditions.

Use onChange Catalog Client Script - If you want to show/hide a field based on the population of another field.

 

You cannot use UI Action for Catalog Items.

 

If the provided solution is useful/working, please Accept as Solution and hit the Helpful. 
 
Thanks & Regards,
Srikanth Akula.

View solution in original post

Tanushree Maiti
Tera Patron

Hi @DeIvory Gordon 

 

It is catalog UI policy.

 

try this:

 

1: Create the Catalog UI Policy

  1. Scroll to the Catalog UI Policies > New.
  2. Name: Different Shipping Address Visibility
  3. Applies to: A Catalog Item
  4. Catalog Item: (Select your created item)
  5. Conditions:  "Is there a different Ship To Location?" is Yes
  6. Check the Reverse if false box.
  7. Applies on Catalog Tasks/Requested Items boxes if you want this visibility maintained after submission.
  8. Click Submit

 

2: Add UI Policy Action

  1. Open the UI Policy record you just created.
  2. Scroll to the Catalog UI Policy Actions related list and click New.
  3. Variable name: Enter shipping address
  4. Visible: True
  5. Mandatory: True (Optional) - Set to True so they cannot submit without filling it out.
  6. Click Submit
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron

Hi @DeIvory Gordon 

 

It is use case of UI policy, where you want to show a hidden field.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@DeIvory Gordon 

UI action is not for catalog item.

If you want to show/hide another variable based on value of previous variable then -> UI policy or onChange catalog client script

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Srikanth_9
Mega Sage

Hi @DeIvory Gordon,

 

Use Catalog UI Policy - If you want to show/hide a field based on conditions.

Use onChange Catalog Client Script - If you want to show/hide a field based on the population of another field.

 

You cannot use UI Action for Catalog Items.

 

If the provided solution is useful/working, please Accept as Solution and hit the Helpful. 
 
Thanks & Regards,
Srikanth Akula.

Tanushree Maiti
Tera Patron

Hi @DeIvory Gordon 

 

It is catalog UI policy.

 

try this:

 

1: Create the Catalog UI Policy

  1. Scroll to the Catalog UI Policies > New.
  2. Name: Different Shipping Address Visibility
  3. Applies to: A Catalog Item
  4. Catalog Item: (Select your created item)
  5. Conditions:  "Is there a different Ship To Location?" is Yes
  6. Check the Reverse if false box.
  7. Applies on Catalog Tasks/Requested Items boxes if you want this visibility maintained after submission.
  8. Click Submit

 

2: Add UI Policy Action

  1. Open the UI Policy record you just created.
  2. Scroll to the Catalog UI Policy Actions related list and click New.
  3. Variable name: Enter shipping address
  4. Visible: True
  5. Mandatory: True (Optional) - Set to True so they cannot submit without filling it out.
  6. Click Submit
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti