Dispaly Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2025 09:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2025 08:14 PM
You can use UI Policy instead of Business rule.
1. In the Incident form, access to additional action menu > Configure > UI Policies
2. Create a new record with condition like "State is Resolved" and saved it.
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2025 08:53 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader