How can I allow customers to fill in metafield info during account creation?

Topic summary

Goal: let customers enter a custom customer metafield (e.g., Siret) during account signup so it appears in the admin customer record. A direct edit to main-register.liquid with a new input field did not work.

Constraints: Shopify’s default registration form has strict limitations and does not support adding arbitrary fields/metafields via theme code alone. Collecting extra data at signup requires APIs or apps.

Proposed solutions:

  • Use Shopify Admin API to create customers and set metafields at signup.
  • Use external apps:
    • Customer Fields: collects custom fields, saves them to customer metafields, auto-creates metafield definitions (pinning recommended), supports standard fields (company_name, default_address, tax_exempt), and can add an “edit account” form for logged-in users.
    • FieldsRaven: enables theme developers to create/update metafields at any step of the customer journey; includes a quick start guide.

Outcome: No native theme-only solution. Recommended paths are API-based implementation or specialized apps. The code snippet shared illustrates the attempted approach but isn’t sufficient within Shopify’s built-in registration constraints. The thread is effectively resolved with app/API recommendations.

Summarized with AI on January 30. AI used: gpt-5.

Hello,

I created a metafield for customer objet, this is fine, I can edit it through the Shopify Admin portal.

But I want to offer the possibility for a customer to fill in this information during account creation to retreive it in the customer information page in admin center.

I tried to edit the main-register.liquid file, with no luck

{{ 'customer.metafields.custom.siret' | t }}

anyone can help ?

thanks

Mathias

Hello @Mati7777777

Unfortunately, we have strong limitations in Shopify’s default registration form
Proof: https://heliumdev.com/blog/shopify-create-custom-registration-form)

We can avoid these restrictions only with API calls or external apps usages:
Create customer by API (https://shopify.dev/api/admin-rest/2022-04/resources/customer#post-customers))
External app example (https://apps.shopify.com/advanced-registration)

2 Likes

Ok many thanks !

Hey @Andrei_Kuchuk and @Mati7777777 ,

I just stumbled on this thread and saw Andrei linked to my blog post. Thanks! :blush:

We built the Customer Fields app to solve this problem exactly. Every custom field you collect using Customer Fields will save to customer metafields in Shopify. The app automatically adds metafield definitions within Shopify for each custom field you add to your form. You’ll probably want to pin those metafields as well.

You can also collect standard Shopify fields like company_name, default_address, or tax_exempt and the data will sync with the customer records in Shopify. Furthermore, you can install an “edit account” form within the customer account area so that logged-in customers can edit certain information (you can choose what to let customers edit).

I’m a bit late here :sweat_smile: However I thought I’d mention that last year I built a niche app (FieldsRaven) for theme developers to make creating/updating metafields possible on any step of the customer journey.

Your use case is a good fit for the app, I assume that you’re comfortable working with code, in that case it should be really simple. Here is the quick start guide.