Script for Mandating Asset field in Request Creation/Edit page

Script for Mandating Asset field in Request Creation/Edit page

Please Use the below script in FAFR to mandate Asset field in the Request Creation/Edit page



if(jQuery("#selectedCIs").val() == ""){ alert("Asset(s) field cannot be empty."); $CS.stopFormSubmission(); }

                  New to ADSelfService Plus?

                    • Related Articles

                    • Script to Auto share request

                      1. Download MSP_share_Request.zip from the attachment, extract it, and paste the same under ManageEngine\ServiceDesk Plus MSP\integrations\Custom_scripts.          # auto_share_MSP.py      # functions.py      # configuration.json 2. ...
                    • 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 ...
                    • Customize Login page and add JS scripts

                      Customize Login Page Start by going to Advanced Portal Settings (or Application Settings under ESM Directory) and click on "Customize Now" under Login Page Customizaion Start editing the HTML content to suit your needs by adding style/css content, ...
                    • Script to hide the "Cancel Request" option from the request actions menu for technicians

                      Script to hide the "Cancel Request" options from the request actions menu for technicians. 1. Goto-->Admin--->Page Scripts 2. Condition-->Roles is---->select all the roles associated with the technicians 3. Execute the script---> ...
                    • Script to update Request with another Group when the request is approved

                      Use case:   Assume a requester is requesting for an gadget asset and it requires approval from their managers.  This ticket needs to be moved to "Asset" group only when the ticket gets approved. Pre-requisite - Python should be installed in the ...