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

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?

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/true#M124537