Making Checkbox Mandatory on a Widget

Ankita9793
Tera Contributor

checkbox.PNGHi All,

 

How can we make checkbox mandatory in a Widget? Please suggest
Below is the code I have written for the widget

<div
ng-if="c.data.offNetworkOptionSelected == 'User is unavailable currently due to prolonged leave'"
style="margin-top: 10px"
>
<small
>${If you are currently on a leave of absence (LoA) (or are reporting on behalf of someone who is on LoA),
updating your status in HRDirect automatically updates the status of all workspaces and devices on a
colleague profile. This will also pause further chasers}
</small>
<br />
<div>
<br />
<p>
<label class="radio-inline"
><input
type="checkbox"
value=" I have read and understand the process"
ng-model="c.data.requiresMachine"
ng-click="checkAll()"
/>${I have read and understand the process}
</label>
</p>

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @Ankita9793,

Please refer to the below link:
https://www.servicenow.com/community/itsm-forum/checkbox-mandatory-in-widget/m-p/524146

 

If it is helpful, please mark it as helpful and accept the correct solution.

Thanks & Regards,

Abbas Shaik