Create new Check Box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2013 02:40 AM
Hi,
How to create check box in a form .
Please suggest.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2013 04:02 AM
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.
Cheers,
Kostya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2013 04:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2013 04:57 AM
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');
}
Cheers,
Kostya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2013 05:40 AM
Thanks a lot.