How to modify newsletter-form.liquid code for custom metafield?

Hi there,

I’ve added a custom metafield to “Customer metafield definitions” (customer.metafields.custom.childs_name) and hoped to modify the newsletter-form.liquid code to accept “Nickname” along with first_name and last_name.

However, the below is not recording the value in the customer entry:

I’ve also tried name=“customer[custom][nick_name]” & name=“contact[nick_name]” with not effect.

Any ideas?

Thank you

The form doesn’t save to metafields so makes sense why you’re not seeing a result. You can get some data to be stored in notes however:

https://shopify.dev/themes/customer-engagement/additional-customer-information

1 Like

Thank you for clarifying

@CraigJones if you’re still looking for a solution for this, you might wanna check FieldsRaven app, it’s a niche app for theme developers, that makes it possible to create/update metafields from the storefront.

Here is the quick start guide.