check box with hyperlink

Shilpi Sharma2
Tera Contributor

HI All,

below is my requirement

Asset Undertaking – For service request raised under Hardware category, there should be a checkbox with text stating ‘I have read and agree with Do’s and Don’ts for asset undertaking’.


The Do’s and Don’ts should be hyperlinked and popped up when user click it. 

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

DHi Shilpi,

 

Follow below steps.

1. Create a simple widget : Disclaimer with below snippet in body html.

<div>
<input type="checkbox">Your Text <a href="www.google.com">To Do & not To Do</a><br>
</div>

2. Create a variable of type Macro & save it.

3. In the same variable that is created & saved you will find Type Specifications tab where you can specify widget (Disclaimer) created above.

View solution in original post

13 REPLIES 13

Luuk E
Tera Contributor

I would suggest making a onchange script on the do's and don't field. i've found a helpfull community post which might get you started in the right direction.

https://community.servicenow.com/community?id=community_question&sys_id=b0f9accbdb853f4454250b55ca96...

Jaspal Singh
Mega Patron
Mega Patron

DHi Shilpi,

 

Follow below steps.

1. Create a simple widget : Disclaimer with below snippet in body html.

<div>
<input type="checkbox">Your Text <a href="www.google.com">To Do & not To Do</a><br>
</div>

2. Create a variable of type Macro & save it.

3. In the same variable that is created & saved you will find Type Specifications tab where you can specify widget (Disclaimer) created above.

Hi Jaspal,

follow the above steps but field is not visible on catalog item

Can you check if there exists any UI Policy or Client Script.

Also, can you make sure the variable type is Macro. As the same snippet above works in my PDI with variable type as Macro.

find_real_file.png