Creating custom data to save into the customer object and access on a different page

I am trying to create custom data to save into the customer object, which I could then access on a different page. I have an input like this

I created an exam page that uses a script to calculate the score, which is then sending the value to that input. I am trying to save that into the customer object which I could then access on a different page like this:

{% if customer.score > 11 %}

You Passed

{% endif %}

Is this possible?

Hi @Forever-Curls

Hope you’re having a great day!

Is this possible?

Yes! You can use metafields object to do this.

The metafields object allows you to store additional information for products, collections, customers, orders, blogs, pages and your shop. You can output metafields on your storefront using Liquid.

If you have any further questions, please do reach out either here on the forum, or via private message/email.