The CreatorCon Call for Content is officially open! Get started here.

how to make variables in form non mandatory for end users while filling the catalog item

sainath reddy
Tera Contributor

I have a requirement in catalog item that for ITIL role users while filling form some fields will be mandatory and while the end user is getting created the same variable should be non-mandatory in catalog itm.how to resolve this requirement.

1 ACCEPTED SOLUTION

Hi @sainath reddy ,

please use following script(when to run) in catalog ui policy.

 

if(gs.hasRole('resolver')){

return true;

}

 

plz mark helpful if satisfied with the code.

 

View solution in original post

8 REPLIES 8

sainath reddy
Tera Contributor

@Ankur Bawiskar 

Hi Ankur, Can you help me in this requirement

Nivedita Patil
Giga Sage

Hi @sainath reddy ,

 

You can create catalog ui policy.

 

Mark my answer correct and helpful if helps you.

 

Thanks,

Nivedita Patil

Hi @Nivedita Patil 

May I know what is the condition it should be having for end user/ITIL user

Nilesh Pol1
Giga Guru

Hi @sainath reddy ,

You can add condition with catelog UI policy script section in which you can differentiate Itil user and end user with specific role.

e.g. gs.hasRole("roleName");

if script throws true then only added UI actions (fields will be mandatory) will executes.

 

plz marks as helpful, if you goes little bit towards the solution.