Reputation: 125
How do I prevent post if validation on my formset failed? If there is a missing value on any required field I dont want the information to get erased if I press the send button ("SKICKA").
I apologize for the mixed language in the picture.
Upvotes: 1
Views: 224
Reputation: 373
In your Edit mode for Epi form if you scroll down you should be able to see all the fields listed in a list called Form elements e.g. your Namn field, click that in the Form elements and edit it. You will see a list of Validators which you can choose from. Adding a required or any other suitable validation will prevent the form from posting if there were no text proveded.
Upvotes: 1