Disable Default Template - Using FAFR

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 

jQuery(document).ready(function(){
     
          window.location.href="/Templates.do?module=mergedRequest";
  
}); 

   /*alert("You have no permission to access this page.");
     if (jQuery('button[onclick="location.href=\'/Templates.do?module=incident\';"]').length > 0) {
        jQuery('button[onclick="location.href=\'/Templates.do?module=incident\';"]').click();
     }
     else {
        jQuery('button[onclick="location.href=\'/Templates.do?module=mergedRequest\';"]').click();
     }*/

5. Save the script 




The above template will redirect the technicians from default template to template categories.

                  New to ADSelfService Plus?

                    • Related Articles

                    • Route from default request to service catagories

                      To route from default request page to service catagories Kindly follow the steps below, Access the Admin Module Select incident template>>Fields and Forms Rules Create a new rule, paste the script and save it I have attached a screenshot for ...
                    • Hide templates from drop-down while using a specific template using FAFR

                      The below script can be used in the respective incident template under Form Load section of Field and Form Rules. if(["Application Crashes Frequently","New incident"].indexOf(jQuery("select#template_box").select2("data").text)==-1){ ...
                    • Account specific request template: Redirection to requester's account based template from default template using FAFR

                      Tested in builds 14000, 14200 and 14201 (Global FAFR): Step 1: In Global FAFR, on form load, configure an FAFR and execute the below script under Action as shown below, try{ $req.form.destroyForm(undefined, false); }catch(err){} ...
                    • Hide Asset

                      Use case If Technicians want to hide Asset field during template loading, then the same can be achieved using Execute Script option in Field and Form Rules. Solution Edit the incident/service template from which the asset needs to be hidden, choose ...
                    • How to diff of two Date& Time fields using FAFR

                      If you have two date and time additional fields or default fields, and if you want to capture the difference between those two fields in Hours and minutes, then use the below script to capture the value in an additional field, Under the respective ...