UUDigitalHumanitieslab / microcontact

Web application for the Microcontact project lead by Roberta d'Alessandro
0 stars 1 forks source link

"I was born in Italy" option disappears if you omit the field twice #89

Closed jgonggrijp closed 7 years ago

jgonggrijp commented 7 years ago

If you select neither "I was born in…" radio button, try to submit, then immediately try to submit again, the first option (born in Italy) disappears. This is caused by the fact that the omission error message <label> is placed within another <label>, i.e. the one containing "I was born in Italy". On form re-validation, jQuery-Validation then empties and hides the latter instead of the former. This should be fixed by adjusting the jquery.validate configuration in UploadFormView.render in client/script/view/uploadForm.coffee.