Enforce Mandatory fields on a client-side UI action

Rishi18
Kilo Expert

How can I enforce mandatory field check in a client-side UI action?

I've tried putting 'g_form.checkMandatory = true;' inside my function that is called on click and I want a check just like 'Save' UI Action, it should not allow further action if mandatory fields are not filled.

 

Thanks in advance!

Rishi

 

1 ACCEPTED SOLUTION

Inactive_Us1474
Giga Guru

There is one way to do this using below client side ui action :

if(g_form.mandatoryCheck() == true)
{
return false;
}
else return true;

 

Hope it helps.

 

View solution in original post

12 REPLIES 12

I've already mentioned this to you in the previous response.

Thanks for your efforts though!

Inactive_Us1474
Giga Guru

There is one way to do this using below client side ui action :

if(g_form.mandatoryCheck() == true)
{
return false;
}
else return true;

 

Hope it helps.

 

Thank you, Akhil!

This is exactly what I was looking for.

I am just curious where can I find such methods in the documentation or somewhere else?