Shopify custom form create customer not working

Topic summary

A developer is troubleshooting a custom Shopify form designed to collect customer information and send an e-book via email. The form initially appeared not to create new customer records.

Root Issues Identified:

  • The form code itself works correctly when tested in isolation
  • Multiple customer forms on the same page (e-book form + newsletter footer form) cause confusion with success confirmations
  • Shopify sets a posted_successfully? flag globally for customer forms, causing the wrong form to display confirmation messages
  • Testing complications arose from not deleting previous customer accounts with the same email, making submissions appear as page refreshes
  • The page being unpublished added debugging complexity with preview parameters

Solutions Discussed:

  • Submit forms via JavaScript/AJAX to control which form shows confirmation and avoid page reloads
  • Publish the page to simplify testing
  • For email automation: Use Shopify’s official Email app or third-party services like Klaviyo that integrate with Shopify Flow
  • The original poster’s Mailchimp/Flowmail approach didn’t trigger emails as expected

The form now successfully creates customers; remaining work involves fixing confirmation display and implementing automated e-book delivery.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Hey sorry for the late reply, I didn’t expect to get an awnser so soon. I am not using the dawn theme but a custom theme instead i think. not completely sure on that because i am not the one who developed the website. I am just doing this page. but with a js handler i think you mean this:

document.getElementById('ebook-form').addEventListener('submit', function(event) {
    event.preventDefault();
    
    const name = document.getElementById('name').value;
    const email = document.getElementById('email').value;
    
    if (name && email) {
        this.submit();
    } else {
        alert('Vul alle velden in.');
    }
});

just a little varification is al. but i dont think this does anything because i dont have an id assinged to my form. further for the preview link, i think you mean this https://a16ouka3bi2hi1cf-79398338909.shopifypreview.com/pages?preview_key=9a7a05aeba2be3ffdfe520308b2546e6 but i dont know for how long it is active and while it is not published it won’t work anyway because of the shopify ReCaptcha restrictions. If there is anything else you need, just let me know. Thanks for the help!