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.

          • Related Articles

          • 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){ ...
          • Workaround for Bulk mark/remove default technician option

            Feature ID: 14285. This Workaround works only from version 10.5. Also take a backup before implementing the steps. Bulk mark default technician option: 1-> Go to Admin -> technician list view -> Select All Accounts and All Sites -> Bulk select ...
          • Hide Asset

            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. Edit the incident/service template from which the asset needs to be hidden and include the below ...
          • 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 ...
          • Customize the category list/selection based on template.

            The Category applies to all the templates in SDP-MSP.  You can hide them using the field and form rules to make them unavailable for users.  Under Admin >> Incident Template >> Edit the template in questions >> Field and Form Rules tab. You can ...