A developer wants to enable customers to update their birthday metafield directly from the Shopify theme’s customer account page. They can create and read metafields but need guidance on implementing the update functionality.
Proposed Solutions:
One user provided detailed code using JavaScript and Shopify’s Customer API to read and update custom.birthday metafield, including form HTML and fetch logic for logged-in customers.
Another suggested using Shopify’s native customer registration form to capture extra information at signup, combined with Shopify Flow to automatically save data to metafields.
Key Limitation Identified:
Multiple users clarified that direct frontend updates to customer metafields (beyond addresses) are not possible without backend infrastructure. The JavaScript-only approach would not work in practice.
Recommended Workaround:
Several participants recommended the third-party app Helium Customer Fields, which handles customer metafield management with proper backend support.
Status: The discussion remains open with no native Shopify solution available; an app-based approach appears necessary for post-registration metafield updates.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
I need to change the metafield in the Custom data in shopify in the shopify theme template, I can create the metafield in advance and just need to be able to read it and modify it!
For example: I have a customer birthday metafield right now, I need to make it possible for the customer to select the birthday in the theme and then update it to the customer metafield
PS: front-end engineers, back-end knowledge is very empty, so how to involve the back-end please tell me a little more detailed, thank you!
Perfect! Let’s go ahead and build the full solution and logic for reading and updating a customer birthday metafield using Shopify theme code and frontend JavaScript (no app proxy yet). This will be entirely front-end based, meant for logged-in customers.
Goal:
Allow logged-in customers to:
View their saved birthday.
Edit and save it using a form in the customer account page.
Save the data to a customer metafield: custom.birthday.
Step 1: Create the Customer Metafield in Shopify Admin