• Resolved jesusginard

    (@jesusginard)


    Hi there,

    I’m trying to set up a custom form with integration with MC4WP.
    No matter what I try I haven’t been able to get it working.

    The form is working since I get what I’m supposed to get when a user submits it.
    I’m not getting the opt-in e-mail from Mailchimp.
    There are no errors in the log.
    Double opt-in is enabled.
    I’ve tried with GDPR and non-GPDR lists. None of them work.
    I’ve tried using HTML Forms and it works.

    This is my HTML code for the custom form:

    <form action="https://www.mycode.com/script.php" method="post">
      <input id="name" placeholder="Name" type="text" name="name"  autocomplete="off" required><br />
      <input id="email" placeholder="Email" type="email" name="email"  autocomplete="off" required><br />
      <input type="checkbox" name="mc4wp-subscribe" value="1" />
    	Sign-up to our newsletter.
      </label>
      <label><input type="checkbox" required /> I accept the terms and conditions</a></label><br />
      <input type="submit" value="Submit">
    </form>

    Can you help me?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi @jesusginard,

    It looks like your form submits to an external website or at least a script outside of WordPress (looking at the /script.php part), so our plugin will never be able to pick up on the form submission and do its thing.

    For the custom form integration to work, the action attribute of the <form> element must point to your WordPress URL (this can be any page on your WP site).

    Hope that clarifies. Good luck!

    Thread Starter jesusginard

    (@jesusginard)

    Yes, that page was just an example.
    The real script is inside the main domain.
    It’s: https://www.wavesfactory.com/freebie_delivery/sk10.php
    However, I think this is the same problem as before.

    • This reply was modified 5 years, 5 months ago by jesusginard.
    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    In order for our work to work, you will need to integrate this form processing script within your theme or using some other custom plugin.

    Thread Starter jesusginard

    (@jesusginard)

    Thanks for the quick replies.
    I managed to get it working using a custom page that included my script for handling the form.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom form not subscribing’ is closed to new replies.