• Resolved marcuskal

    (@marcuskal)


    Hi,

    I created a simple submission form (name, address etc) that should send an email to our ‘info’ mailbox. Nothing fancy or complex.

    But despite all fields being filled out, Forminator still returns a generic error “Your form is not valid. Please fix the errors!” without even telling me WHAT the error is…

    All fields are set as mandatory, and all are filled correctly.

    This is the form code
    {"type":"form","data":{"fields":[{"id":"name-2","element_id":"name-2","form_id":"wrapper-1774-5320","parent_group":"group-1","type":"name","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-1774-5320","field_label":"Nome / Name","placeholder":"","prefix_label":"Prefix","fname_label":"Nome / First Name","fname_placeholder":"","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Cognome / Last Name","lname_placeholder":"","prefix":"","fname":"true","mname":"","lname":"true","required_message":"Name is required.","prefix_required_message":"Prefix is required.","fname_required_message":"Campo obbligatorio / Mandatory field","mname_required_message":"Middle Name is required.","lname_required_message":"Campo obbligatorio / Mandatory field","multiple_name":"true","fname_required":"1","lname_required":"1","formid":"wrapper-2742-3777"},{"id":"section-1","element_id":"section-1","form_id":"wrapper-2048-8992","parent_group":"","type":"section","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-2048-8992","section_title":"Driver","cform-section-border-style":"none","section_border":"solid","cform-section-border-width":"2","cform-section-border-color":"#e80b0b"},{"id":"name-1","element_id":"name-1","form_id":"wrapper-4752-9383","parent_group":"","type":"name","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-4752-9383","field_label":"Nome / Name","placeholder":"","prefix_label":"Prefix","fname_label":"Nome / First Name","fname_placeholder":"","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Cognome / Last Name","lname_placeholder":"","prefix":"","fname":"true","mname":"","lname":"true","required_message":"Name is required.","prefix_required_message":"Prefix is required.","fname_required_message":"Campo obbligatorio / Mandatory field","mname_required_message":"Middle Name is required.","lname_required_message":"Campo obbligatorio / Mandatory field","multiple_name":"true","fname_required":"1","lname_required":"1"},{"id":"address-1","element_id":"address-1","form_id":"wrapper-3553-3363","parent_group":"","type":"address","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-3553-3363","street_address":"1","address_city":"","address_state":"true","address_zip":"true","address_country":"true","address_line":"","street_address_label":"Via / Street","street_address_placeholder":"","address_city_label":"Città / City","address_city_placeholder":"E.g. Sydney","address_state_label":"Provincia / State","address_state_placeholder":"","address_zip_label":"CAP / Postcode","address_zip_placeholder":"","address_country_label":"Nazione / Country","address_line_label":"Interno / Apartment, unit","street_address_required_message":"Campo obbligatorio / Mandatory field","address_zip_required_message":"Campo obbligatorio / Mandatory field","address_country_required_message":"Campo obbligatorio / Mandatory field","address_city_required_message":"This field is required. Please enter the city.","address_state_required_message":"Campo obbligatorio / Mandatory field","address_line_required_message":"This field is required. Please enter address line.","street_address_required":"1","address_city_required":"1","address_state_required":"1","address_zip_required":"1","address_country_required":"1"},{"id":"phone-2","element_id":"phone-2","form_id":"wrapper-3916-5363","parent_group":"","type":"phone","options":[],"cols":"6","conditions":[],"wrapper_id":"wrapper-3916-5363","required":"1","limit":"10","limit_type":"characters","validation":"international","field_label":"Telefono / Phone","placeholder":"","required_message":"Campo obbligatorio / Mandatory field","phone_international_country":"it","formid":"wrapper-1910-9345"},{"id":"email-2","element_id":"email-2","form_id":"wrapper-3916-5363","parent_group":"","type":"email","options":[],"cols":"6","conditions":[],"wrapper_id":"wrapper-3916-5363","validation":"1","placeholder":"","field_label":"Email","required":"1","validation_message":"Confermare indirizzo email / Confirm email address","required_message":"Campo obbligatorio / Mandatory field","formid":"wrapper-3916-5363"},{"id":"checkbox-1","element_id":"checkbox-1","form_id":"wrapper-1816-6800","parent_group":"","type":"checkbox","options":[{"label":"Sì / Yes","value":"Sì / Yes","key":"1660-3381","error":"","default":"","calculation":"2400"},{"label":"No","value":"No","key":"9854-7939","error":"","calculation":"1450"}],"cols":"12","conditions":[],"wrapper_id":"wrapper-1816-6800","value_type":"checkbox","field_label":"Navigatore / Codriver","layout":"horizontal","options_bulk_editor":"Sì / Yes;Sì / Yes; 0\nNo;No; 0","description":"","options_expanded":"1","required":"1","condition_action":"hide","calculations":"true","required_message":"Scelta obbligatoria / Mandatory choice"},{"id":"group-1","element_id":"group-1","form_id":"wrapper-7207-6152","parent_group":"","type":"group","options":[],"cols":"12","conditions":[{"element_id":"checkbox-1","rule":"is","value":"Sì / Yes"}],"wrapper_id":"wrapper-7207-6152","field_label":"Passeggero / Passenger","is_repeater":"true","max_limit":"3","action_element_type":"button","add_action_text":"Aggiungi Passeggero / Add Passenger","remove_action_text":"Rimuovi Passeggero / Remove Passenger","description":"Aggiungi o rimuovi passeggeri / Add or remove passengers","min_limit":"0","condition_action":"show","condition_rule":"all"},{"id":"section-2","element_id":"section-2","form_id":"wrapper-1584-2810","parent_group":"","type":"section","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-1584-2810","section_title":"Auto / Car","cform-section-border-style":"none","formid":"wrapper-1584-2810","section_border":"solid","cform-section-border-color":"#e80202"},{"id":"text-1","element_id":"text-1","form_id":"wrapper-3771-8062","parent_group":"","type":"text","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-3771-8062","input_type":"line","limit_type":"characters","field_label":"Marca / Brand","placeholder":"","required":"1","required_message":"Campo obbligatorio / Mandatory field"},{"id":"text-3","element_id":"text-3","form_id":"wrapper-6175-7062","parent_group":"","type":"text","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-6175-7062","input_type":"line","limit_type":"characters","field_label":"Modello / Model","placeholder":"","formid":"wrapper-2314-4635","required":"1","required_message":"Campo obbligatorio / Mandatory field"},{"id":"number-1","element_id":"number-1","form_id":"wrapper-8877-2763","parent_group":"","type":"number","options":[],"cols":"6","conditions":[],"wrapper_id":"wrapper-8877-2763","calculations":"false","limit_min":"1880","limit_max":"2022","field_label":"Anno / Year","placeholder":"","required":"1","precision":"0","required_message":"Campo obbligatorio / Mandatory field"},{"id":"text-2","element_id":"text-2","form_id":"wrapper-8877-2763","parent_group":"","type":"text","options":[],"cols":"6","conditions":[],"wrapper_id":"wrapper-8877-2763","input_type":"line","limit_type":"characters","field_label":"Targa / License Plate","placeholder":"","formid":"wrapper-1171-8557","required":"1","required_message":"Campo obbligatorio / Mandatory field"},{"id":"consent-1","element_id":"consent-1","form_id":"wrapper-4623-4662","parent_group":"","type":"consent","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-4623-4662","required":"true","field_label":"ToS","consent_description":"<p>Sì, accetto i <a href=\"http://www.adriaticarace.com/termini-e-condizioni/\">termini di servizio</a> e la politica della privacy - Yes, I agree with the <a href=\"#\" target=\"_blank\" rel=\"noopener\">privacy policy</a> and <a href=\"#\" target=\"_blank\" rel=\"noopener\">terms and conditions</a>.</p>","required_message":"Campo obbligatorio / Mandatory field"}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"formName":"Iscrizione","version":"1.20.1","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","akismet-protection":"0","form-style":"default","enable-ajax":"true","autoclose":"true","submission-indicator":"show","indicator-label":"Submitting...","form-type":"default","submission-behaviour":"behaviour-hide","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","submitData":{"custom-submit-text":"Send Message","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!"},"validation-inline":"1","form-expire":"no_expire","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":"","submission-file":"delete","store_submissions":"1","form_name":"iscrizione","form_status":"publish","cform-color-settings":"true","button-submit-background-static":"#d71921","button-submit-color-static":"#ffffff","button-submit-background-hover":"#0c0200","button-submit-background-active":"#770000","sc_email_link":"1","sc_message":"<p>Your form has been saved as draft and a resume link has been generated so you can return to the form anytime within {retention_period} days from today. Copy and save the link or enter your email address below to have the link sent to your mail.</p><p>These fields weren't saved to your submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload. Kindly fill them out before submitting the form.</p>","honeypot":"1","use_donotcachepage":"1"},"client_id":null,"integration_conditions":[],"behaviors":[{"slug":"behavior-1234-4567","label":"Registrazione confermata","autoclose-time":"5","autoclose":"true","newtab":"sametab","thankyou-message":"<p>Grazie per esserti iscritto! Riceverai presto un' email con le informazioni necessarie per completare la procedura.</p>\n<p> </p>\n<p>Thank you for your registration! You'll receive an email with the information required to complete the process shortly.</p>","email-thankyou-message":"","manual-thankyou-message":"","submission-behaviour":"behaviour-thankyou","redirect-url":"","conditions":[]}],"notifications":[{"slug":"notification-1234-4567","label":"Iscrizione Adriaticarace","email-recipients":"default","recipients":"info@adriaticarace.com","email-subject":"Nuova richiesta #{submission_id} for {form_name}","email-editor":"<p>C'è una nuova richiesta di iscrizione: <br />{all_fields} <br />---<br />This message was sent from {site_url}.</p>","email-attachment":"true","type":"default","conditions":[]}]},"status":"publish","version":"1.20.1"}

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @marcuskal,

    I hope you are doing well and thank you for the export of the form.

    The issue seems to be the mandatory fields of the passenger names, it is also possible to choose both conditions Yes and No in there due to the usage of checkbox, so I suggest to turn it into Radio field for Yes/No and not mandatory for the Name and Surname as it can then be sent when No is checked for a workaround.

    https://prnt.sc/KxmL2AQjVJz0

    Kind regards,
    Zafer

    Thread Starter marcuskal

    (@marcuskal)

    Thank you!

    I switched to Radio button and removed the fields as Mandatory.

    But now I get “Error:Module Object is corrupted!”. Making progress, I guess? What’s about that new error though?

    Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    Hi @marcuskal

    Thank you for response!

    When exactly this new error happens?

    I’m asking because, theoretically, the only place in plugin’s code that could trigger this would be if you manually try to re-send notification e-mail (“Resend notification email” button on “Formiantor -> Submissions” page when you view specific submission).

    Is this when it happens for you or is it upon submission?

    Can you try removing e-mail notification from the form and then adding it again from scratch – then re-save form and clear all caches on site/server?

    Best regards,
    Adam

    Thread Starter marcuskal

    (@marcuskal)

    Thank you!

    The issue was in the email recipient(s) for the sumbission.

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi again @marcuskal,

    We are happy to hear that the issue has been resolved.
    Please let us know in case you need further help.

    Kind regards,
    Zafer

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Forminator: your form is not valid’ is closed to new replies.