how to create checkbox on incident table and that checkbox is visible to service desk users

ShubhadaMaske
Tera Contributor

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

Dr Atul - LNG
Tera Patron

Hi @ShubhadaMaske 

 

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

 

AGLearnNGrow_0-1722342730026.png

 

 

To show and hide you can create ACL.

AndersBGS
Tera Patron

Hi @ShubhadaMaske ,

 

  1. Create a checkbox field on the incident table/task table according to @Dr Atul - LNG  comment. 
  2. 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);
  3. 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