Hello,
I have trouble getting one of my forms to work properly.
The context is this: I have 2 forms. Both are meant to be using Ajax.
Form A works perfectly. Form B is redirecting me to a blank page with the parameters of the request.
Both forms were created the same, the only difference is that Form B requires the user to be logged in.
Form B is also contained into a popup that is displayed right after a successful AJAX wordpres login.
So, I log in. I fill in Form B, hit submit and I get this:
[my URL]/admin-ajax.php?action=ninja_forms_ajax_submit
This page has this content:
{"form_id":2,"errors":{"email-12":{"msg":"Veuillez encoder votre adresse e-mail valide.","location":"12"},"required-10":{"msg":"This is a required field.","location":10},"required-general":{"msg":"Please ensure all required fields are completed.","location":"general"},"required-11":{"msg":"This is a required field.","location":11},"required-12":{"msg":"This is a required field.","location":12},"required-13":{"msg":"This is a required field.","location":13}},"success":false,"fields":{"10":"Pr\u00e9nom *","11":"Nom de famille *","12":"Courriel *","13":"D\u00e9tails de votre requ\u00eate *","14":false},"form_settings":{"form_url":"[MY URL HERE]\/wp-admin\/admin-ajax.php?action=ninja_forms_ajax_submit","form_title":"Demande d'information des Professionnels","email_from_name":"Clinique OVO","email_from":"[MY EMAIL]","email_type":"html","admin_mailto":[MY EMAIL],"admin_subject":"","admin_email_msg":"","admin_email_fields":"1","admin_attach_csv":"0","user_subject":"","user_email_msg":"","user_email_fields":"0","show_title":"0","logged_in":"1","append_page":"","ajax":"1","landing_page":"","clear_complete":"1","hide_complete":"0","success_msg":"\u003Cp\u003EVotre message a bien \u00e9t\u00e9 re\u00e7u.\u003C\/p\u003E","sub_limit_number":"","sub_limit_msg":"","sub_id":"","admin_attachments":[],"user_attachments":[]},"extras":{"_wpnonce":"b409d482f6","_wp_http_referer":"\/wp-content\/themes\/ovo\/member-content.php","_ninja_forms_display_submit":"1","_form_id":"2","_ninja_forms_field_14":"Envoyer"}}
From what I gather, there might be a problem with how the ajax form is contained into another ajax element. Or maybe not.
Any ideas?