Catalog Item variable - Hyperlink that opens a document and a validation to make sure that the link is clicked/open

Babeth Lopez5
Kilo Contributor

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 "

Policy 123

"
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"

1 REPLY 1

eumak
Tera Guru

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

Mark it as helpful or correct, If Applicable


Cheers..!

Happy Learning:)

Tushar