How can I retrieve a specific customer note by label in Prestige theme?

How can I retrieve a specific customer note by label in Prestige theme?

Weedlover
Excursionist
17 0 5

Like in this example I've added fields to my registration form (customers/register.liquid in my theme Prestige)

<label for="CustomerFormAllergies">Allergies</label>
<input type="text" id="CustomerFormAllergies" name="customer[note][Allergies]" placeholder="Allergies">

Now I want to access only the labeled part of the customer note. With "{{ customer.note }}" I get everything stored in there. How do I use the label, for example [Allergies] as in the code snippet above, to retrieve only that specific part of it?

Reply 1 (1)

oliversinz
Shopify Partner
97 7 18

Hi

Hope you're having a great day!

Here's an answer to your question:

https://community.shopify.com/c/technical-q-a/retrieving-the-customer-note/m-p/2021774/highlight/tru...

- Was my reply helpful then Click Like and Mark it as an Accepted Solution

- Feel free to contact me regarding any help on: Twitter | LinkedIn | My website



- Want to modify or custom changes on store Hire me.
Shopify Partner | Full Stack Software Developer