• Resolved dixiekun

    (@dixiekun)


    Seems like a great plugin for a developer like me, but the form action seems to not work.
    form not submitting, not getting any emails, for admin and for customer.
    It refreshes after clicking the submit button but no emails are sent or submitted.

    I’ve tested with check email, and WP mail SMTP, also been using cf7 and submits email just fine.

    I can’t provide a link to the page because it’s in our testing url, and would need private access to that url.

    Here’s the markup:

    <div class=”row”>
    <div class=”col-md-6″>
    <div class=”form-group label-floating”>
    <label class=”control-label”>Name*</label><input type=”text” class=”form-control” name=”NAME” id=”name” required />
    </div>
    </div>

    <div class=”col-md-6″>
    <div class=”form-group label-floating”>
    <label class=”control-label”>E-Mail-Addresse*</label><input type=”email” class=”form-control” name=”EMAIL” id=”email” required /><small class=”text-danger animated bounce form-control-msg”>Ihre E-Mail-Adresse ist erforderlich.</small>
    </div>
    </div>
    </div>

    <div class=”row”>
    <div class=”col-md-6″>
    <div class=”form-group label-floating”>
    <label class=”control-label”>Firma</label><input type=”text” class=”form-control” name=”COMPANY” id=”company” />
    </div>
    </div>

    <div class=”col-md-6″>
    <div class=”form-group label-floating”>
    <label class=”control-label” for=”contact-form-TELEFONNUMMER”>Telefonnummer</label>
    <input type=”number” class=”form-control” name=”TELEFONNUMMER” id=”contact-form-TELEFONNUMMER”>
    <small class=”text-danger animated bounce form-control-msg”>Telefonnummer ist erforderlich.</small>
    </div>
    </div>
    </div>

    <div class=”row”>
    <div class=”col”>
    <div class=”form-group label-floating”>
    <label class=”control-label”>Nachricht*</label><textarea class=”form-control” name=”MESSAGE” required></textarea>
    </div>
    </div>
    </div>

    <div class=”row”>
    <div class=”col”>
    <label for=”contact-form-EINWILLIGUNG_ZUR_DATENVERARBEITUNG”>Einwilligung zur Datenverarbeitung</label>
    <label><input type=”checkbox” name=”EINWILLIGUNG_ZUR_DATENVERARBEITUNG[]” value=”Ich stimme zu, dass meine Angaben aus dem Kontaktformular zur Beantwortung meiner Anfrage erhoben und verarbeitet werden. Die Daten werden nach abgeschlossener Bearbeitung Ihrer Anfrage gel?scht. Hinweis: Sie k?nnen Ihre Einwilligung jederzeit für die Zukunft per E-Mail an [email protected] widerrufen. Detaillierte Informationen zum Umgang mit Nutzerdaten finden Sie in unserer Datenschutzerkl?rung.”> <span class=”data-consent”>Ich stimme zu, dass meine Angaben aus dem Kontaktformular zur Beantwortung meiner Anfrage erhoben und verarbeitet werden. Die Daten werden nach abgeschlossener Bearbeitung Ihrer Anfrage gel?scht. Hinweis: Sie k?nnen Ihre Einwilligung jederzeit für die Zukunft per E-Mail an [email protected] widerrufen. Detaillierte Informationen zum Umgang mit Nutzerdaten finden Sie in unserer Datenschutzerkl?rung.</span></label>

    </div>
    </div>

    <div class=”row”>
    <div class=”col-md-4 mx-auto”>

    <button type=”submit” class=”c7-contact-btn” id=”c7_form_submit” value=”send”>
    <div class=”form-button-icon”></div>
    </button>

    </div>
    </div>

Viewing 11 replies - 1 through 11 (of 11 total)
  • Please share a link to where I can test the form on your site. Thanks

    Thread Starter dixiekun

    (@dixiekun)

    Hello,

    I can give you private access to our testing environment.

    How do I send login details privately?

    Thanks

    I just installed html-forms for the first time and run into the same problems as reported before by dixiekun: No response after submitting a form.

    No wonder, since the HTML code being generated produces a “form” instruction without an “action” tag. After further digging into the code of “class-form.php”, I got the impression that the responsible filters do not produce any result. This is in line 51:
    $form_action = apply_filters(‘hf_form_element_action_attr’, null, $form );

    Moreover, I cannot find any piece of code in this plugin that defines these filters, so no wonder that the “form” has no “action”

    It looks like that some severe bug was introduced in html-forms-1.3.16 (may 2020), and that this bug was never repaired since then. And since I cannot find a previous version of html-forms, I cannot debug it even further.

    The plugin looks very nice but if it is not working, it is of no use.
    So please fix this bug!

    • This reply was modified 4 years, 4 months ago by robbr.
    • This reply was modified 4 years, 4 months ago by robbr.

    It uses javascript/ajax to submit the form, so no action tag is needed. that filter is there for you to use if you want/need it for some reason, it’s not needed to make the plugin work.

    Where can I test the form on your site? Is there any Javascript errors on that page in the console?

    Thank you for the swift response!

    I have an experimental website, and an experimental page with an example form is at
    https://joepeesoft.nl/co-counseling/Tools/WordPress/experiment-with-html_forms/

    Whatever I fill in, after hitting “SEND”, the same page returns, everything is empty and no further effect

    While debugging the response with the tools within Firefox, I am getting the impression that it tries to get:

    GET https://joepeesoft.nl/favicon.ico

    This resulted in the error: “404 not found”

    This page does indeed not exist, but I never asked for it either.
    So could this be related to the problem?

    That is not related to the form at all and not what is causing the issue. It’s normal for your browser to look for a favicon.
    Under HTML Forms > (your form) > Setting, can you set Hide form after a successful sign-up? to Yes and then test again. Does it at least hide the form?

    I have tried it with both
    “Hide form” yes and no,
    “Save form submission” yes and no
    “Redirect to URL”, yes and no
    And in all cases I get the same results, and nothing is submitted, no email, and no redirect.
    I am not sure what “Hide form” should do, but the response is that all fields are cleared and I am looking to the same form afterwards.

    I have also done experiments with another plugin (Contact Form 7), and that one submits and sends mail, so the problem is not related to my mail system. However your plugin is not only more simple, it also aims to store filled-in forms into a database and aims to support a page redirect afterwards. So I am still hoping to get yours running.

    wrong

    • This reply was modified 4 years, 4 months ago by robbr.

    Please email a link to this thread to support@ htmlforms.io

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Form is not submitting. No emails received’ is closed to new replies.