I have a view that contains 5 forms presented separately, but with the same model. The purpose of this is to allow the user to fill out all the forms on one page and be able to quickly compare the values that he enters for each form. Each form has most of the common fields with the other. If you want to get an idea of things, imagine that you are a football coach, and want on one page you can customize your team’s tactics for each time. This way I will have a HalfTime model with two forms on one page, one for each half time
Therefore, when I submit the form in Halftime 1 format and that the validation fails, HalfTime1 validation errors are also displayed in the HalfTime2 fields. I would like to be able to disable validation of one form if it has not been submitted.
My idea was to send a variable from the controller to a view containing the name / id of the current half time and from this variable, displaying validation errors only in ccorrect form.
Do you have any ideas on how I can turn off the display of validation errors in one field?
Thank you very much!
Thrax source
share