How do I make fields mandatory when User belongs to INDIA country

Prats Abhang
Tera Contributor

Make Custom Field become mandatory when Requested For belongs to India Country.

7 REPLIES 7

I alredy did that but using script include how can achieve

 

 

Hi @Prats Abhang 

We cant make any fields mandatory using script include...Either we have to use UI policy or Client Script for making fields mandatory if its not mandatory from the dictionary level.

If you are trying to do some complex  validation before making fields mandatory,  then we can call a GlideAjax Script Include in Client Script . And with the value returning from script include we can set the fields mandatory using g_form.setMandatory('fieldname',true); in client script.

 

Hope this helps.

Amit Verma
Kilo Patron
Kilo Patron

Hi @Prats Abhang 

 

Have you made the script include to get the requested for location ? If yes, that was not required. This could have been done via UI Policy (recommended) or via Catalog Client Script.

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.