On display business rule

Ben Cervantes
Kilo Expert

Hello all,

I am running into a little issue when working with this new business rule that I have created. The situation is that we have created an after hours field that is flagged anytime after 5pm local time and before 8am local time or on weekends. The business rule is currently set up to be on display so that when a new record is created the form has the field flagged. The issue that I am running into is that any Self-service record created from the record producer will not flag the after hours field. This is the script that I have created. I have changed the business rule to be onInsert and the Self-service form will have the after field flagged but it will not be flagged when a new record is opened until submitted.

Now the reason that this is a little issue is that another field is driven off the after hours field. It is an on call field and will only display when the after hours field is checked off. It is beneficial to have this rule set to onDisplay when creating an incident but beneficial to have the rule set to onInsert for Self-service records. Open to ideas, I have thought of creating a scheduled job to run every few minutes to flip any Self-Service records to true if they were entered in after hours.

After.PNG

1 REPLY 1

Mike Allen
Mega Sage

In the record producer, you can add a script to check this button if true:



find_real_file.png



Why not just put your script there?