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

Patrick Fedigan
Giga Guru

Hello,


Have you made sure to select the correct check-boxes under the 'Availability' tab for each variable?

 

Cheers,

Angshuman3
Mega Guru

Hi,

I guess you aren't able to see the variables on the Catalog Task Form, right?

So, in that case when you are using the workflow & creating the Catalog task Activity, there if you go and select the Variables you want to show from the slush-bucket you have in that Activity I think that would help you to achieve what you want. There won't any reason to run a UI Policy for that as per my understanding from your query

Hope this helps.

Mark the answer as correct/helpful if you are satisfied.

Thanks,
Angshuman

llbcdl
Giga Contributor

Thank you for the quick reply, I am selecting the variables from the slush bucket on the catalog task activity in the workflow. Only 2 are showing up on the task form. the items underlined in red are the varibles selected, the ones highlighted are the ones that show on the form.

find_real_file.png

find_real_file.png

My thinking with the UI policy is to hide the variables from the requester. The intent of the catalog item is for employee terminations, the hidden variables are a checklist for the technician to complete on the task form.

Thanks!

LLBCDL

 

Try one or both of these:

 

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

Set variables to Global: