
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 08:16 AM
Hello everyone, I hope you are well.
I am weeks ago trying to place a link that leads to an office365 form via a hyperlink but I can't get it to display when selecting the selected subcategory in the incident form.
The idea is to have it only show up if that subcategory is selected.
I tried to add it from the form layout settings but it remains fixed and I have no option to do it by selecting a specific subcategory.
I would be grateful if you could help me with this.
Regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 02:05 PM
Sorry didn't notice this is on an incident. You can still use UI Policy for this.
The only difference is, instead of adding as a catalog variable, add as a custom field on the incident table - Add and customize a field in a table (servicenow.com)
Before I suggested to use a label field type (which will still work)...but I noticed that you may want to use a read only URL type instead (read only so that it is always "locked" and clickable).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 08:26 AM - edited 07-19-2023 08:28 AM
Use a UI Policy! UI policies (servicenow.com)
Create a variable that contains the link, then create a UI Policy with a "reverse if false" setting, looking at the "subcategory L3" and if the value is "office365" (or whatever you're looking for it to trigger on), then the UI Policy Action is "make the new variable with the link visible"...so if the category is not appropriate, the link will not be visible (reverse if false) and if it is appropriate (trigger value), the new variable will show on the form, in the location you place it.
In the example below, they are triggering on when "department_or_group" variable is "Department" - this is where you will set it to be "subcategory L3" and "office365". You will see the "department" variable under "Catalog UI Policy Actions" - this is where you set the variable you created with the hyperlink to "visible = True". Leave everything else as "Leave alone" and make sure "Reverse if False" is checked.
Hope this helps!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 11:53 AM
Marshal, thank you very much for your prompt reply.
I did not understand well the part of the variable and how to create it (I am relatively new in ServiceNow developments).
I understand that this will show the link on the incident form within the catalog in the service portal, correct?
Maybe I explained myself wrong, but I would need the link to be shown and to be able to be accommodated in the screen, that is to say, that it can be accommodated to our requirement and to be able to change the color, etc.
I honestly have no idea how to get there, maybe with a script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 02:05 PM
Sorry didn't notice this is on an incident. You can still use UI Policy for this.
The only difference is, instead of adding as a catalog variable, add as a custom field on the incident table - Add and customize a field in a table (servicenow.com)
Before I suggested to use a label field type (which will still work)...but I noticed that you may want to use a read only URL type instead (read only so that it is always "locked" and clickable).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 03:06 PM
Thank you Marshal!