make description field non mandatory

nameisnani
Mega Sage

Hi Team , 

 

For this particular catalog item , i won't make this ' Description' Field non mandatory .

 

NOTE -   Description field we are taking from variable set . 

 

Can any one please provide client script .

nameisnani_0-1721718257889.png

 

Thanks in advance 

3 REPLIES 3

Mark Manders
Mega Patron

You need to exclude this from the existing logic. How is the field made mandatory? On the variable itself? Through a ui policy? Through a client script? 

Find that and exclude your catalog item from it. A new client script won't override the existing logic.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Vrushali  Kolte
Mega Sage

Hello @nameisnani ,

 

You can achieve it by creating a new catalog client script for specific catalog item as follows -

 

VrushaliKolte_0-1721719832769.png

function onLoad() {
    g_form.setMandatory('help_text', false); //Replace the variable name
}

  Make sure to set the UI Type as All to trigger the script on Service Portal.

 

If my answer solves your issue, please mark it as Accepted✔️ and Helpful👍!

 

NikhilKamlekar
Tera Expert

Hi,

You have to check, from where "description'' field is making mandatory. 

If it's through variable then you can uncheck the description variable's mandatory field.

NikhilKamlekar_0-1722415760262.png