FAFR - How to mandate field when SLA is overdue

FAFR - How to mandate field when SLA is overdue


1. Under Admin >> Incident Template >> Edit the template in question

2. Choose field and form rules and apply the below script On Form Submit

var duebyDate = $CS.getValue("DUEBYDATE");
var currentDate = new Date();
if(currentDate>duebyDate)
{
$CS.mandateField(["WorkOrder_Fields_UDF_CHAR1"]);
}



You can choose the relevant field name as highlighted below 



                  New to ADSelfService Plus?

                    • Related Articles

                    • To make SLA mandatory while creating a service request

                      The steps mentioned below make the SLA selection mandatory for any service request creation. Tested in builds : 14000 and 14301. Script: if(!jQuery("#servicesla-selected").attr("data-association-id") || ...
                    • Set SLA automatically for a service request using FAFR

                      Note: The below FAFR script will work only on 10600 MSP and above Requirement: Set SLA automatically for a service request depending on the Priority. Usecase: Let us consider a scenario where SLA has to be set depending on the requester's associated ...
                    • Script to Populate User Additional Field under Incident Template using FAFR

                      The script load the Requester Name under Incident Additional field ( As a pick list), by choosing the requester name under additional field the script populates the user additional field value. * Kindly create two additional fields under Admin -> ...
                    • SLA not working

                      There are a few configurations that need to be checked 1. Account/Site Check the request Account & Site, Now, go to Admin>Service Level Agreements>Filter the Account & Site and make sure the SLA is created for the same  2. Operational Hours Go to ...
                    • Disable Default Template - Using FAFR

                      1. Navigate to Admin>Incident Template>> Edit Default Template  2. Select Field & Form Rules Tab 3. Select On form Load  4. Make sure to select "Applies to Technicians" and set the action as Execute Script and paste the below script  ...