Make entry fields compulsory
Status: Beta
Brought to you by:
maturnbull
Currently a user can submit an email order without
filling in any details. Some fields should be made
compulsory, and possibly also be sanity-checked (e.g.
email address).
The form controller should validate the field values,
and if there are problems it should redirect back to
the form (retaining existing values) and show an error
message indicating which fields need user attention.
Logged In: YES
user_id=1371356
Originator: NO
See http://gallery.menalto.com/node/54230
With this code you need to specify in the TPL file which entries you want or don't want to be compulsory by unbraking or braking the addFieldToCheck lines. I guess that a final solution will need to provide this in the checkout admin...