- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2021 09:07 PM
We have a requirement to add hyperlink to a check box. For this, i created a widget with type check box and associated this widget with "custom with label" variable type on catalog item. I want to make this label mandatory. How to make this? I tried client scripts and UI policy in this but its not working. Its urgent. Please help me in fixing this issue
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2021 10:34 PM
Hi,
You can try the below steps :
1) Change the variable type from "custom with label" to "custom".
2) In the widget , enter the label which contains the hyperlink as shown in the below screenshot.
3) Create a new checkbox variable in the catalog item & mark "selection required" as true.
It will appear as below :
Let me know if that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2021 10:02 PM
Hi @Developer
Please refer the below link https://servicenowguru.com/scripting/client-scripts-scripting/checkbox-variables-mandatory/ I hope this might help you
Please Mark My Response Answered and Hit Helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2021 10:34 PM
Hi,
You can try the below steps :
1) Change the variable type from "custom with label" to "custom".
2) In the widget , enter the label which contains the hyperlink as shown in the below screenshot.
3) Create a new checkbox variable in the catalog item & mark "selection required" as true.
It will appear as below :
Let me know if that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2021 01:28 AM
Thank you so much Kiranmai. This is much better approach. One more question, If i want to increase the text size of the label "Please read all instructions...." and make it bold how to make it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2021 01:54 AM
Hi,
you can use <b> bold tag to make it bold
for font size do this
<b><p style="font-size:30px">Your message</p></b>
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader