can't close or save form


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.


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


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

Does it work?


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.