Success page not rendering
-
Hi, I’ve just set up a HappyForms contact form on my website, but when the form is submitted, I see a JSON string on the page rather than a rendered page. On success, this is the text I get:
{"success":true,"data":{"html":"\n<div class=\"happyforms-form\" id=\"happyforms-34\">\n\t<form action=\"\" class=\"\" id=\"happyforms-form-34\" method=\"post\">\n\t\t\n\t\t\t<input type=\"hidden\" name=\"action\" value=\"happyforms_message\">\n\t\t\t\t<input type=\"hidden\" name=\"happyforms_form_id\" value=\"34\" \/>\n\t\t\t<input type=\"hidden\" id=\"happyforms_message_nonce\" name=\"happyforms_message_nonce\" value=\"14dface0d3\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/contact\/\" \/>\t\t\t<input type=\"hidden\" name=\"happyforms_step\" value=\"0\" \/>\n\t\n\t\t\t\t<h3 class=\"happyforms-form__title\"><\/h3>\t\t\n\t\t\t\t<div class=\"happyforms-message-notices\">\n\t\t\t\t\t\t<div class=\"happyforms-message-notice success\">\n\t\t\t\t<h2><p>Your message has been sent. I'll be in touch soon!<\/p><span>Tracking number: 3<\/span><\/h2>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\n\t\t<div class=\"happyforms-flex\">\n\t\t\t\t<input type=\"checkbox\" name=\"34single_line_text_-1\" value=\"1\" style=\"display: none;\" tabindex=\"-1\" autocomplete=\"off\">\n\t\t\t\t<div class=\"happyforms-form__part happyforms-part happyforms-part--single_line_text happyforms-part--width-full happyforms-part--label-inside\" id=\"happyforms-34_single_line_text_1-part\" data-happyforms-type=\"single_line_text\" data-happyforms-required=\"\">\n\t<div class=\"happyforms-part-wrap\">\n\t\t\t\t\t\t<label for=\"happyforms-34_single_line_text_1\" class=\"happyforms-part__label\">\n\t\t<span class=\"label\">Name<\/span>\n\t\t\t<\/label>\n\t\t\t\n\t\t<div class=\"happyforms-part__el\">\n\t\t\t\n\t\t\t<input id=\"happyforms-34_single_line_text_1\" type=\"text\" name=\"34_single_line_text_1\" value=\"\" placeholder=\"\" required aria-required=\"true\" \/>\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t<span class=\"happyforms-part__description\"><\/span>\n\t\t\t\t\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div><div class=\"happyforms-form__part happyforms-part happyforms-part--email happyforms-part--width-full happyforms-part--label-inside\" id=\"happyforms-34_email_2-part\" data-happyforms-type=\"email\" data-happyforms-required=\"\">\n\t<div class=\"happyforms-part-wrap\">\n\t\t\t\t\t\t<label for=\"happyforms-34_email_2\" class=\"happyforms-part__label\">\n\t\t<span class=\"label\">Email<\/span>\n\t\t\t<\/label>\n\t\t\t\n\t\t<div class=\"happyforms-part__el\">\n\t\t\t\n\t\t\t<input type=\"email\" id=\"happyforms-34_email_2\" name=\"34_email_2\" value=\"\" placeholder=\"\" required aria-required=\"true\" \/>\n\t\t\t\t\t\t\t\t\t<span class=\"happyforms-part__description\"><\/span>\n\t\t\t\t\n\t\t\t\t\t<\/div>\n\t<\/div>\n\t<\/div><div class=\"happyforms-form__part happyforms-part happyforms-part--single_line_text happyforms-part--width-full happyforms-part--label-inside\" id=\"happyforms-34_single_line_text_3-part\" data-happyforms-type=\"single_line_text\" data-happyforms-required=\"\">\n\t<div class=\"happyforms-part-wrap\">\n\t\t\t\t\t\t<label for=\"happyforms-34_single_line_text_3\" class=\"happyforms-part__label\">\n\t\t<span class=\"label\">Subject<\/span>\n\t\t\t<\/label>\n\t\t\t\n\t\t<div class=\"happyforms-part__el\">\n\t\t\t\n\t\t\t<input id=\"happyforms-34_single_line_text_3\" type=\"text\" name=\"34_single_line_text_3\" value=\"\" placeholder=\"\" required aria-required=\"true\" \/>\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t<span class=\"happyforms-part__description\"><\/span>\n\t\t\t\t\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div><div class=\"happyforms-form__part happyforms-part happyforms-part--multi_line_text happyforms-part--width-full happyforms-part--label-inside\" id=\"happyforms-34_multi_line_text_4-part\" data-happyforms-type=\"multi_line_text\" data-happyforms-required=\"\">\n\t<div class=\"happyforms-part-wrap\">\n\t\t\t\t\t\t<label for=\"happyforms-34_multi_line_text_4\" class=\"happyforms-part__label\">\n\t\t<span class=\"label\">Message<\/span>\n\t\t\t<\/label>\n\t\t\t\n\t\t<div class=\"happyforms-part__el\">\n\t\t\t\n\t\t\t<textarea id=\"happyforms-34_multi_line_text_4\" name=\"34_multi_line_text_4\" rows=\"5\" placeholder=\"\" required aria-required=\"true\" ><\/textarea>\n\t\t\t\n\t\t\t\n\t\t\t\t\t\t<span class=\"happyforms-part__description\"><\/span>\n\t\t\t\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div>\t\t\t\t\t\t<div class=\"happyforms-form__part happyforms-part happyforms-part--submit\">\n <input type=\"submit\" class=\"happyforms-submit happyforms-button--submit\" value=\"Submit Form\" >\n<\/div>\t\t<\/div>\n\n\t\t\t<\/form>\n<\/div>\n\n"}}
The form submits correctly, and I get the email, but I get this instead of a page.
The page I need help with: [log in to see the link]
- The topic ‘Success page not rendering’ is closed to new replies.