Create new Check Box

snowuser111
Kilo Guru

Hi,

How to create check box in a form .
Please suggest.

Thanks

5 REPLIES 5

Kostya
Tera Guru

The type of field is called "True/False" if you are creating a checkbox within Form designer and "Checkbox" if you are creating a Variable within Record Producer. Types: http://wiki.servicenow.com/index.php?title=Variable_Types#CheckBox

To create a new checkbox on incident form, please open the Form layout (Personalize > Form Layout). Go to "Create new field" and create new one of type True/False.


Hit the Thumb Icon and/or mark as Correct, if my answer was correct. So you help others to see correct responses and I get fame 🙂

Cheers,
Kostya

Thanks a lot Konstantin for instant helping.
Went to Forms-->incident-->create new field-->''new checkbox" with Type True/false-->SAVE.

Now the new checkbox is available in incident form.I can personalize and bring the fields in IM.

1. What if I want to have some action based on checking the checkboxes?Can you help in this too please.

Thanks


Kostya
Tera Guru

Yes, it will be handle by Client Scripts (http://wiki.servicenow.com/index.php?title=Client_Scripts).
Create the new client script for table "incident":
Type: onChange
Field name: {your check box}

now write the script you want to be executed, f.e.


function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
alert('its me');
}


Hit the Thumb Icon and/or mark as Correct, if my answer was correct. So you help others to see correct responses and I get fame 🙂

Cheers,
Kostya

snowuser111
Kilo Guru

Thanks a lot.