script to make attachment mandatory while creating a request.

script to make attachment mandatory while creating a request.

Please add the below script under Field and Form rules for that specific template. 

 

if ($CS.isAttachmentEmpty() == true){

alert("message");

$CS.mandateField(["ATTACHMENT"]);

}

 

 

Screenshot for reference:

 

 

                    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") || ...
                      • Request add attachment_Python script-API

                        Steps for adding attachment to the request through python script-API. Extract the attached  "Attachment_Python_Script.zip" >> Edit attachmentscript.py >>Mention product installed url in the base url ; update the api key; update the request id that ...
                      • 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. ...
                      • Deluge Script to show request attributes in Task Subject / Description from builds: 10600 and 14306

                        Requirement: To show the request field values such as Request Type, Status etc., or the additional field values in the Task subject/description. Use case: When a task is triggered from a request, it should contain the request details (configured) in ...
                      • API call to fill the mandatory fields and close a request simultaneously

                        The "Close Request" API call is used to close a request. But to fill the mandatory fields if any and close a request simultaneously, the "Update Request" API call can be utilized. Example: To fill the mandatory fields like "Resolution" and "Priority" ...