Support » Plugin: Forminator Payment, Quiz and Contact Form Plugin » Validation throws unexpected error

  • Resolved Ronaldt

    (@neejoh)


    Hi,

    Normally we have no issue with the JS form validation in Forminator.
    But for some reason with this specific (and not exotic by any means) form is throwing a “Warning: No message defined for name-1” instead of the Dutch “Your name is required” message we’ve set up in the backend.
    I’ll attach the full config of the form below. In that you can see the dutch “required_message” is filled in for the id “name-1”.

    Other fields for that form, also translated to a Dutch error, show the default “This field is required.“.

    You can test it on the supplied link, at the bottom right footer of that page. I’ve made a screensot too:
    https://res.cloudinary.com/comsi-rtv/image/upload/v1564580327/Forminator/forminator-validation-error.png

    One thing I might add is that we hide some of the labels through our custom class “hide-label” to make the form a bit shorter, but that has been added after the described validation problem was already there so that should be complete unrelated.

    Kind regards,
    Ronald

    {"type":"form","data":{"fields":[{"id":"name-1","element_id":"name-1","form_id":"wrapper-3941-8896","type":"name","cols":12,"required":true,"field_label":"Naam","placeholder":"Naam*","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","required_message":"Graag je naam opgeven","wrapper_id":"wrapper-3941-8896","conditions":[],"custom-class":"hide-label"},{"id":"email-1","element_id":"email-1","form_id":"wrapper-1511347712118-1739","type":"email","cols":12,"required":"true","field_label":"E-mail","placeholder":"E-mail*","validation":true,"validation_text":"","required_message":"Graag je e-mailadres opgeven","validation_message":"Graag je e-mailadres controleren op fouten","wrapper_id":"wrapper-1511347712118-1739","conditions":[],"custom-class":"hide-label"},{"id":"phone-1","element_id":"phone-1","form_id":"wrapper-1311247712118-1194","type":"phone","cols":12,"required":false,"field_label":"Telefoon","placeholder":"Telefoon","validation":true,"validation_text":"","wrapper_id":"wrapper-1311247712118-1194","required_message":"Graag je telefoonnummer opgeven!","description":"","conditions":[],"custom-class":"hide-label"},{"id":"select-1","element_id":"select-1","form_id":"wrapper-1330-6890","type":"select","options":[{"label":"Maak een keuze","value":"maak-een keuze","limit":"","default":false},{"label":"N.v.t.","value":"info@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Apeldoorn","value":"apeldoorn@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Breda","value":"breda@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Dronten","value":"dronten@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Eindhoven","value":"eindhoven@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Emmeloord","value":"emmeloord@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Genemuiden","value":"genemuiden@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Huizen","value":"huizen@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Meppel","value":"meppel@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Raalte","value":"raalte@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Rosmalen","value":"rosmalen@DOMAINCLIENT.COM","limit":"","default":false},{"label":"Zwolle","value":"zwolle@DOMAINCLIENT.COM","limit":"","default":false}],"cols":12,"conditions":[],"value_type":"single","field_label":"Vestiging:","wrapper_id":"wrapper-1330-6890","required":true,"required_message":"Graag je keuze van vestiging opgeven. Indien niet van toepassing kies \"n.v.t.\" "},{"id":"select-2","element_id":"select-2","form_id":"wrapper-9760-2026","type":"select","options":[{"label":"Maak een keuze","value":"maak-een keuze","limit":"","default":false},{"label":"Algemeen","value":"Algemeen","limit":"","default":false},{"label":"Reservering","value":"Reservering","limit":"","default":false},{"label":"Administratieve Zaken","value":"Administratieve Zaken","limit":"","default":false},{"label":"Personeelszaken","value":"Personeelszaken","limit":"","default":false}],"cols":12,"conditions":[],"value_type":"single","field_label":"Betreft:","wrapper_id":"wrapper-9760-2026","formid":"wrapper-9760-2026"},{"id":"textarea-1","element_id":"textarea-1","form_id":"wrapper-1988247712118-9871","type":"textarea","cols":12,"required":true,"field_label":"Bericht","placeholder":"Bericht*","input_type":"paragraph","limit":"","limit_type":"characters","required_message":"Wat wil je ons toesturen?","wrapper_id":"wrapper-1988247712118-9871","conditions":[],"custom-class":"hide-label"},{"id":"checkbox-1","element_id":"checkbox-1","form_id":"wrapper-9655-8779","type":"checkbox","options":[{"label":" Met het invullen van dit formulier geeft u aan akkoord te gaan met het opslaan en bewaren van uw gegevens *","value":"-met het invullen van dit formulier geeft u aan akkoord te gaan met het opslaan en bewaren van uw gegevens *"}],"cols":12,"conditions":[],"value_type":"checkbox","field_label":"Akkoordverklaring","required":true,"required_message":"Accepteer het privacybeleid!","wrapper_id":"wrapper-9655-8779","custom-class":"hide-label"}],"settings":{"pagination-header":"bar","formName":"Direct Contact","version":"1.7.0.1","form-border-style":"none","form-padding":"","form-border":"","fields-style":"enclosed","validation":"on_submit","form-style":"default","enable-ajax":"true","autoclose":"true","submission-behaviour":"behaviour-thankyou","thankyou-message":"<p>Bedankt voor je bericht.<br />Zo nodig nemen wij zo spoedig mogelijk contact met je op!</p>","submitData":{"custom-submit-text":"Verstuur","custom-invalid-form-message":"Error: Controleer het formulier op fouten!"},"validation-inline":"1","form-expire":"no_expire","use-admin-email":"true","admin-email-title":"Nieuw contactformulier CLIENT","admin-email-editor":"<p>Er is een contactformulier verzonden met de volgende gegevens:<br />{all_fields}</p>\n<p>---<br />Dit bericht is verstuurd vanaf {site_url}</p>","admin-email-recipients":["info@DOMAINCLIENT.COM"],"user-email-title":"Bedankt voor je bericht op CLIENT","user-email-editor":"<p>Hierbij ontvangt u een kopie van uw aanvraag.</p>\n<p>{all_fields}</p>\n<p>Bedankt voor het insturen van uw vraag of opmerking.<br />Zo nodig nemen wij zo spoedig mogelijk contact met u op.</p>\n<p>Met vriendelijke groet,</p>\n<p>Team 1.2.3. Machineverhuur</p>\n<p>---<br />Dit is een automatisch bericht van {site_url}</p>","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"true,","submission-file":"delete","form_status":"publish","autoclose-time":"10","honeypot":"","use_ajax_load":"1","enable-submissions-retention":"true","submissions-retention-unit":"years","submissions-retention-number":"2","form_name":"Direct Contact","admin-email-cc-address":"","use-user-email":"1","user-email-recipients":["{email-1}"],"cform-color-settings":"true","button-submit-background-static":"#0c629f","input-bg":"#ffffff","input-placeholder":"#aaaaaa","input-color":"#444444","input-hover-bg":"#efefef","input-active-bg":"#efefef","input-border-error":"#ea3535","select-background-static":"#ffffff","select-value-static":"#444444","button-submit-background-hover":"#008fca","button-submit-background-active":"#2682bf","cform-asterisk-color":"#EA3535","label-validation-color":"#EA3535","response-success-background":"#29bb9c","response-success-color":"#ffffff","use-custom-css":"","custom_css":"","response-error-border":"#ea3535","input-border":"rgba(51,51,51,0.12)","select-border-static":"rgba(51,51,51,0.12)","dropdown-border":"#0c629f","admin-email-reply-to-address":"{email-1}","use-autofill":"","fields-autofill":[{"element_id":"email-1","provider":"","is_editable":"yes"}]},"client_id":null},"status":"publish","version":"1.7.0.1"}

    (I’ve replaced the e-mail addresses and client name in above code export)

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.