can't close or save form

Hello;

i have a mandatory field on form, i want that : the user can’t close or save the form if he doesn’t select a value of this mandatory field.

please help me and thank you in advance.

Hi,

have you put the property “mandatory” in the field?

Regards

Hi, On the form → Data Source → Table → field → Properties = mandatory set as Yest

Does it work?

regards

thank you for your help,

i just put this code in database method: validateWrite() : if ( field ="")

{
throw error (“You must select a value.”);

return ret;

}

and of course this field mandatory is yes.

with this code the user can’t save or close the form without choosing a value.

regards