- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 04:19 AM
Is there a way to prevent submitting a catalog item unless the user clicks a URL in the help text?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 06:03 AM
You can have this approach
1) create a hidden checkbox type variable and place it at the end of catalog form and hide it using UI policy
2) use variable of type Custom and create a widget to show that URL, in HTML of that anchor tag add onclick even and then update that hidden checkbox as true once link is clicked.
3) use onSubmit catalog client script and see if checkbox is true, if yes then allow submission, if not then stop submission
This is the widget syntax to set the variable from widget client controller
api.controller = function($scope) {
$scope.page.g_form.setValue('hiddenVariable', true);
});
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 09:35 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 04:26 AM
@RanjanRP Its not possible to check whether user clicked on the URL in help text. However you can have one Boolean filed (checkBox) and label it as "I went through the content present in URL". You can make this field as mandatory or you can do validation in onSubmit client script.
This way you can get acknowledgement from user.
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 09:25 PM
@RanjanRP Did you try what I suggested.
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 04:28 AM
Hi @RanjanRP
It's not possible to detect whether a user has clicked a URL.
As a workaround, you can add a mandatory checkbox and ask the user to check it only after they have clicked and read the content from the URL.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 04:43 AM
@RanjanRP
What about making the help text always expanded above a checkbox and without the checkbox marking true it cannot be continued.
How does that sound?
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */