Make on-hold Reason field visible and hide in Sys-popup view of incident when State field changes .
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 03:50 AM
My requirement is to configure the fields 'state' and 'On hold reason' in the incident sys pop up view.
The 'on hold reason ' field should be visible only when the state is on hold.
I have written an ACL for this, as UI policy and Client script wont work in Sys popup view.
The ACL is attached as a screenshot
My ACL Script :
if(current.isNewRecord()){
answer = true;
}
if((current.state != '3') && (!(current.isNewRecord()))) //on hold reason bakend value is 3
{
answer = false;
}
if(current.state == '3'){
answer = true;
}
The issue here is : While checking the pop up view of incident in problem or change record ,the 'on hold reason' field is working properly. (Screen shot 3 and screen shot 4)
But it is breaking the OOB functionality of already existing Incident form .when state is 'on hold' ,on hold reason field is not visible(screen shot 4).
When we create a new incident , on hold reason field is visible when the state is on hold
When we create a new incident , on hold reason field is visible when the state is on hold
0 REPLIES 0