Dispaly Business Rule

KasarlaS
Tera Contributor

In the Incident Form State Changes From InProgress to Resolved I want to set Read Only the Resolution Information Field automatically how can i achieve this

2 REPLIES 2

shun6
Giga Sage

@KasarlaS 

You can use UI Policy instead of Business rule.

1. In the Incident form, access to additional action menu > Configure > UI Policies

shun6_0-1745895929372.png

2. Create a new record with condition like "State is Resolved" and saved it.

shun6_1-1745895990070.png

3. In the UI Policy Actions related list, click new button and create a record.

Set "Field name" the fields that you wanto to set read only.

Set "Read only" to true.

shun6_2-1745896263125.png

 

If my answer was helpful, please click the Thumb Icon and mark it as the solution. This way, it can assist others in the future.

Thanks.

Ankur Bawiskar
Tera Patron
Tera Patron

@KasarlaS 

You cannot use Display business rule for this

You can either use UI policy OR onChange client script to achieve this

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }

    // Check if the state has changed to Resolved
    if (newValue.toString() == '6' && oldValue.toString() == '2') {
        // Set the Resolution Information field to read-only
        g_form.setReadOnly('resolution_information', true);
    }
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader