Forminator Translatepress Consent Field error
-
Hello,
I have a Forminator form and I use TranslatePress for translating (main language of my site is French and second language is English).
The form works well on the French page, but on the English page I get an error “This field is required. Please check it” on the “Consent” field, even if the field is checked.
When I set the “consent field” as “optional” instead of “required”, then the form submits well in both languages.
Does anyone have an idea, how to solve this (as the “consent” field should be “required”) ?
Thank you very much in advance for any help.
MireilleWhen inspecting the pages I see this code for the consent field:
English :
<div id="consent-1" class="forminator-col forminator-col-12"><div class="forminator-field"><label for="forminator-field-consent-1_635648a92acea" class="forminator-label">Consent <span class="forminator-required">*</span></label><div class="forminator-checkbox__wrapper"><label for="forminator-field-consent-1_635648a92acea" class="forminator-checkbox" style="margin: 0;" aria-labelledby="forminator-field-consent-1_635648a92acea__label"><input type="checkbox" name="consent-1" value="checked" id="forminator-field-consent-1_635648a92acea" data-required="true" aria-required="true" tabindex="-1" aria-invalid="false"><span class="forminator-checkbox-box" aria-hidden="true"></span></label><div id="forminator-field-consent-1_635648a92acea__label" class="forminator-checkbox__label"><p>By clicking on the “Send” button, I agree that the data entered above will be used to process my application.</p></div></div></div></div>
French:
<div id="consent-1" class="forminator-col forminator-col-12 "><div class="forminator-field"><label for="forminator-field-consent-1_63564af9b88cd" class="forminator-label">Consentement <span class="forminator-required">*</span></label><div class="forminator-checkbox__wrapper"><label for="forminator-field-consent-1_63564af9b88cd" class="forminator-checkbox" style="margin: 0;" aria-labelledby="forminator-field-consent-1_63564af9b88cd__label"><input type="checkbox" name="consent-1" value="checked" id="forminator-field-consent-1_63564af9b88cd" data-required="true" aria-required="true"> <span class="forminator-checkbox-box" aria-hidden="true"></span></label><div id="forminator-field-consent-1_63564af9b88cd__label" class="forminator-checkbox__label"><p>En cliquant sur le bouton ? Envoyer ?, j’accepte que les données entrées ci-dessus soient utilisées pour le traitement de ma demande.</p></div></div></div></div>
As a difference I see that in the English (not working) form there is an additional :
tabindex="-1" aria-invalid="false"
I have no idea if that is related ?
- The topic ‘Forminator Translatepress Consent Field error’ is closed to new replies.