Catalog Item variable - Hyperlink that opens a document and a validation to make sure that the link is clicked/open
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 10:05 PM
I have a requirement that would require the requestor to click on a link to company policies and make sure that the link is clicked.
I tried several approaches and so far, below is the code that actually did it but does not work in Service Portal.
The configuration that works in platform ui is below:
1. Catalog variable with type Rich Text Label, Rich text' HTML source code is "
2. Then I have On Load Client Script:
g_form.getElement('helpLink').onclick = function() {
var url = "https://
g_navigation.openPopup(url);
g_user.policy123 = true;
};
Is there a code that works as above but is design to work in Service Portal?
When UI Type=All and opened in Portal, the error I'm getting is "There is a JavaScript error in your browser console"
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2022 02:49 AM
Hello Babeth,
The below community answer can help you but the best workaround will be using the help section (insert the link it)
https://community.servicenow.com/community?id=community_question&sys_id=99bdbb961ba64c10a59033f2cd4b...
Mark it as helpful or correct, If Applicable
Cheers..!
Happy Learning:)
Tushar
Cheers..!

Happy Learning:)

Tushar