How to create a checkbox in Modal/Pop up dialog box as shown here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2023 02:19 PM
How to add a checkbox in the popup as highlighted above? Please help. TIA
It's in Incident, Service Operations Work Space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 11:16 PM
- Create a new field in the Incident form
- Set the field type to Checkbox
- Set the Field label to the desired label
- Set the Default Value to true or false
- Set the Visible and Mandatory options as required
- Save the field
- Go to the Service Operations Work Space
- Add the checkbox field to the view
- Save the view
- Refresh the page to see the change
For asking ServiceNow-related questions try this :
For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.
Link - https://nowgpt.ai/
For the ServiceNow Certified System Administrator exams try this :
https://www.udemy.com/course/servicenow-csa-admin-certification-exam-2023/?couponCode=NOW-DEVELOPER
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023 08:14 AM
Hi - Thanks for helping. The field has been created on incident form but how to create a view in Service Operations Workspace? as you suggested below, can you please elaborate more. Thanks
Go to the Service Operations Work Space
- Add the checkbox field to the view
- Save the view
- Refresh the page to see the change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 01:49 AM
Hi there! I am following up from the SOW presentation.
You wanted to know how to add the checkbox field you created to the modal...
The Resolve UI Action is managed by the following action assignment record:
/sys_declarative_action_assignment.do?sys_id=127dba4b77733010e35c06e57b5a9949%26sysparm_view=advanced
This defines when the action is shown, event mappings, and the model. It also references the Client action itself:
/sys_declarative_action_payload_definition.do?sys_id=d0ad7a4b77733010e35c06e57b5a998b%26sysparm_view=advanced
In this client action you will see a Payload field, in the params object try adding your new checkbox field (replace "checkbox" with your field name) like so...
{
"route": "sowformmodal",
"fields": {
"table": "{{table}}",
"sysId": "{{sysId}}",
"title": "Resolve"
},
"params": {
"modalPath": "incident_form_resolve",
"saveLabel": "Resolve",
"isGFormSave": true,
"setFieldOnSave": {
"state": 6
},
"field1": "close_code",
"value1": "{{fields.close_code.value}}",
"displayValue1": "{{fields.close_code.displayValue}}",
"field2": "close_notes",
"value2": "{{fields.close_notes.value}}",
"displayValue2": "{{fields.close_notes.displayValue}}",
"field3": "parent_incident",
"value3": "{{fields.parent_incident.value}}",
"displayValue3": "{{fields.parent_incident.displayValue}}",
"field4": "checkbox",
"value4": "{{fields.checkbox.value}}",
"displayValue4": "{{fields.checkbox.displayValue}}"
}
}