Issue with hiding a variable on the SP and showing on Tasks

Daniel Brown2
Tera Contributor

I am attempting to use UI Policies to hide certain Catalog Item Variables in the Service Portal Form, and then show these same fields later in the generated sc_task.  For example, I have a UI Policy which hides three variables in the Service Portal, and another UI Policy which shows these same variables and sets them to Mandatory.  For some reason, one of these variables does not show in the sc_task form, even though the other two do appear.  These variables are configured only in the two UI Policies, and nowhere else, as far as I can tell.

How do I get this variable to show where I need it?

7 REPLIES 7

ritu_saluja
Tera Expert

Hello @Daniel Brown2 

 

Maybe for that variable you haven't checked the option applies on catalog tasks.

can you please share the screenshot.

Mark my answer correct if it helped you

priyasunku
Kilo Sage

@Daniel Brown2 

 Could you please share  the screenshot of the UI policy.

 

Also can you please check if this variable is included in any client script and it is getting hidden from sc task.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

OlaN
Giga Sage
Giga Sage

Hi,

If you only need to hide the variables in the portal view, you can select that on the UI policy, so that it only runs in the portal view.

Then it should work. See example below.

An image of your configuration would help to give more detailed advice.

 

hide-variable-in-portal-view-only.png

Please see updates to the overall article.  I have two separate Catalog UI Policies that have different actions based upon the form (e.g. invisible in Service Portal vs mandatory on sc_task).  I cannot seem to find the cause of discrepancy in some of the fields versus others.