How can I make field mandatory when submitting from not when saving the form.
Try to write a custom function, hook
on_submit and check fields value
before_submit instead. If you hook on to
on_submit the document will submit itself regardless of whether your validation check passes or fails. You can set
validated = false; if the field is empty so that the submission ultimately fails.