Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

make widget checkbox mandatory on catalog item

Developer3
Tera Expert

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

1 ACCEPTED SOLUTION

Kiranmai_KVL
Kilo Sage

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.

find_real_file.png

3) Create a new checkbox variable in the catalog item & mark "selection required" as true.

It will appear as below :

find_real_file.png

Let me know if that helps.

View solution in original post

7 REPLIES 7

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 🙂

 

Murthy Ch
Giga Sage

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,

Thanks,
Murthy

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader