• Resolved Mayank Dudakiya

    (@mayanksdudakiya)


    Hey,

    How can I add a checkbox into my custom form? My form uses an ajax to submit the data.
    Would you please tell me step by step? How can I add a way to subscribe form after submitting the form?

    I have tried the following way but it’s not increasing subscriber.

    https://www.mc4wp.com/kb/add-subscribe-checkbox-custom-form/

    I have added only following html into my custom form.

    <label>
                        <input type="checkbox" class="elementor-field elementor-size-sm  elementor-acceptance-field" name="mc4wp-subscribe" value="1" />
                        Subscribe to our newsletter.</label>
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @mayanksdudakiya,

    Have you enabled the integration with custom form from the “MC4WP > Integrations” menu? If not, please go to “MC4WP > Integrations”, click on “Custom” and then enable the settings and also select a list where the user details will be added.

    If that does not work, then go to the “MC4WP > Others” menu and let us know if you see any errors there.

    Thread Starter Mayank Dudakiya

    (@mayanksdudakiya)

    Hey,

    Thank you for quick reply.
    I am seeing the following things in “MC4WP > Others”

    [2020-02-11 20:54:45] WARNING: Custom > Unable to find EMAIL field.
    [2020-02-11 20:55:54] WARNING: Custom > Unable to find EMAIL field.

    Plugin Contributor Lap

    (@lapzor)

    Can you share a link to where we can see the form on your site?

    thank

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    There have been no replies to this topic, so I’m marking this as resolved. Please do let us know if you’re still experiencing an issue.

    Thread Starter Mayank Dudakiya

    (@mayanksdudakiya)

    Sorry for the delay, I have no any live site. I am trying the following code and when I submit the form it’s now not logging any error but Subesciber not increasing.

    <input type="hidden" name="EMAIL" placeholder="Your email address" value="[email protected]" />
    <label><input type="checkbox" class="" name="mc4wp-subscribe" value="1" />Subscribe to our newsletter.</label>
    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    Please change the field name from “EMAIL” to “MC4WP-EMAIL” and test again.

    Thread Starter Mayank Dudakiya

    (@mayanksdudakiya)

    Hey,

    Thank you for the quick reply,
    It’s still not working. Is it due to ajax submission?
    I have near about 30 input fields in my custom form and that submitted via ajax requests.
    Still, there is no any error or logs.

    <input type="hidden" name="MC4WP-EMAIL" placeholder="Your email address" value="my_mail_id" />
                        <label>
                        <input type="checkbox" class="elementor-field elementor-size-sm  elementor-acceptance-field" name="MC4WP-SUBSCRIBE" value="1" />
                        Subscribe to our newsletter.</label>

    Can local environment affect this?

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    It should work in local environment too.

    Have you enabled the custom integration settings? If yes, can you please share a screenshot?

    Thread Starter Mayank Dudakiya

    (@mayanksdudakiya)

    Hey,

    Here is the screenshot of custom integration settings:
    1) https://www.screencast.com/t/GzRcc3LaXV
    2) https://www.screencast.com/t/WeZeUKPe3lYZ

    Link of a log: https://www.screencast.com/t/ZjwzeBZqhd

    Plugin Contributor Lap

    (@lapzor)

    I would like to inspect the page that has the form on it, but I understand the site isn’t online yet. Are you able to test somewhere in a way that we can test the form as well/see the page you are working on?

    Thread Starter Mayank Dudakiya

    (@mayanksdudakiya)

    Hey,

    Thanks for your quick reply, due to NDA, I can’t give you link publicly. Would you please tell me another way to pass the link to you?

    I have already inspected console and there was no any jquery error while submitting the form.

    Thanks ??

    Plugin Contributor Lap

    (@lapzor)

    Please email a link to this thread to support @ mc4wp.com

    Thread Starter Mayank Dudakiya

    (@mayanksdudakiya)

    Thank you MailChimp team for your great support to resolve issue.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to add checkbox to subscribe form in Custom Form?’ is closed to new replies.