Issue with hiding a variable on the SP and showing on Tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 11:31 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 11:12 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2023 12:21 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2023 12:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 06:17 AM
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.