Hide Asset

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 Field & Form Rule tab. Create a rule "On Load" with the below script.

jQuery('[name=selectedCIs]').parents('div.mb0').hide(); 
//Hiding the asset in details page (In-line Edit) 
try{
  jQuery('#multiasset').parents().eq(0).hide();
}catch(e){}

and save.


This will hide the asset when the template is selected.

                  New to ADSelfService Plus?

                    • 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){ ...
                    • 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 create ...
                    • 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  ...
                    • 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 ...
                    • How to Hide the Solutions for Requesters

                      Logon to the application as administrator. To Hide the Solutions In the Home tab, click on the Customize menu as shown in the below tab, and select on the Requester Home Page,  In the theme tab , select on the edit button on the theme in which you ...