Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Variables not populating on task using UI Policy

llbcdl
Giga Contributor

I am setting up an request that requires follow up items from the assigned technician. I created the variables that need to be completed on the task. I only want the variables to be visible in the task for the technician to complete.

I created a UI Policy that hides the visibility of the variables and checked the boxes for Applies to the catalog item view and Applies on requested items; It does not apply to catalog tasks.

I selected the variables I wanted to see in the task using Variables on Task Form on the catalog task in the workflow.

The problem is only two of the 5 variables I selected show up on the task. 

As a test, I deactivated the UI Policy and only the tasks that were not selected on the catalog task in the workflow and the 2 original variables show up on the task. What could be causing this behavior?

I do not have any other UI Policies or Client scripts affecting these variables.

Not sure if it makes a difference but only the Label and Select type variables showed on the task. The Yes/No and Multiline text variables did not show up.

I am new to ServiceNow and would appreciate any assistance.

Thanks!

 

 

 

1 ACCEPTED SOLUTION

Try one or both of these:

 

Check the "When to Apply" on the UI policy:

Set variables to Global:

View solution in original post

5 REPLIES 5

llbcdl
Giga Contributor

Thanks Tom! I think Global did the trick.I already had when to apply selected for all but the task item.