how to check if a link has been clicked or not in a catalog variable with type checkbox

Amit Dey1
Tera Contributor

we want a checkbox and the description that contains a link in it , the user should not be able to check the checkbox until he have clicked the link provided there. Is there any way to check if the user has clicked on the link or not ? 

1 REPLY 1

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Amit Dey1 ,

 

Since it's not directly possible to track if a user has clicked a link within a description field in ServiceNow, we can approach this problem indirectly. Here's a workaround i can think ofz:

 

  1. Use UI Policy and Client Script:

    • Create a UI policy to control the checkbox's visibility or editability.
    • Write a client script to track when the link is clicked and update a field value accordingly.

      2. Field for Tracking Link Click:
      • Create a separate field (e.g., a checkbox or a boolean field) to track whether the link has been clicked.

☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect