how to create checkbox on incident table and that checkbox is visible to service desk users
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 05:05 AM
how to create checkbox on incident table and that checkbox is visible to service desk users and after selecting checkbox ....... that checkbox is read only to everyone
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 05:32 AM
I will not recommend creating a new field on Incident table, if this field used widely, better to create on task table. here is example
To show and hide you can create ACL.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 05:49 AM
Hi @ShubhadaMaske ,
- Create a checkbox field on the incident table/task table according to @Dr Atul - LNG comment.
- Create a business rule for the checkbox to set it to mandatory:
(function executeRule(current, previous /*null when async*/) { if (current.u_custom_checkbox) { current.setReadOnly('u_custom_checkbox', true); } })(current, previous); - Create a UI Policy to Control Checkbox Visibility
function onLoad() { if (gs.hasRole('service_desk')) { g_form.setDisplay('u_custom_checkbox', true); } else { g_form.setDisplay('u_custom_checkbox', false); } }
if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders