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.

As I said, just submit form with JS and then you’d know which form initiated JS code and where to show confirmation.

That’d be my choice and better UX without page reload.

As for sending e-mails – I have not tried the App you’ve mentioned. Often clients have something like Klaviyo which has Flow integration.

Otherwise an App by Shopify https://apps.shopify.com/shopify-email would be my first suggestion (and it integrates with Flow).

1 Like