- 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-30-2021 02:21 AM
Hello,
You can use style attribute for styling HTML elements: <b><p style="font-size:160%;">This is a paragraph.</p></b>
Go through the https://www.w3schools.com/html/html_headings.asp so that you can understand the HTML tags & concepts better 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2021 11:08 PM
Hi ,
So do you want to make checkbox as mandatory or label as mandatory ?
If you want to make checkbox as a mandatory,
you can follow @Kiranmai answer.
Thanks,
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2021 11:19 PM
Hi,
you cannot make label mandatory.
You can use this
1) Rich text variable to show hyperlink; this variable allows you to add HTML content in it
2) Then another checkbox variable and make selection as Required to make checkbox mandatory
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader