- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2019 10:16 AM
Hello,
I need to hide certain fields on a parent incident only and am having lots of trouble doing this. I also need to change choice list on certain fields based on incident type selection (this is also only on the parent incident).
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2019 10:41 AM
Hi
In regards to hiding the fields, I would use a UI Policy for simplicity.
To do so:
1. Go to System UI > UI Policies
2. Set the Table to "Incident [incident]"
3. Change the Conditions to [ Parent | is empty ]
4. Save the record
5. In the UI Policy Actions related list, add the fields you want to hide and make sure to set the Visible dropdown to "false"
Now with the UI Policy in place, we can further expand into hiding the Choice Lists.
1. Go to the Script tab in the UI Policy we created
2. Check "Run Scripts"
3. In the Execute If True box change the code to suit your business needs. As an example, this code will remove the first choice of the Impact field:
function onCondition() {
g_form.removeOption('impact', '1');
}
Hope that helps!
If it did, please mark as Helpful and consider setting the reply as the Correct Answer to the question, thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2019 11:53 AM
Hi
No problem! Please try out the UI Policy as the condition described above will limit the change only to the Parent Incident. I have tried this OOB as well and it seems to be working as you intend.
Please remember to mark as Helpful and/or Correct if this works for you, thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2019 12:13 PM
Hey
I tried to create a new UI Policy to hide the fields, and it did not work.
1. Created a new UI Policy
2. Change the Conditions to [ Parent | is empty ]
3. Clicked "Save" and then added "UI Policy Actions" to set visibility to false on certain fields.
I forgot to mention that I currently have 3 UI Policies that hide/display fields (all incident types). Could those UI Policies potentially be affecting the new one?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2019 12:22 PM
It is entirely possible. Try deactivating them temporarily and see if it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2019 11:59 AM
Thanks
I started from scratch, and it turned out there were other UI Policies interfering with what I was doing.
Thanks again!