Customer Nationality in sign up page

Topic summary

A user seeks to add a mandatory nationality dropdown field to their Shopify customer sign-up page.

Proposed Solutions:

  • One contributor provides HTML code for a nationality dropdown that can be added to customers/register.liquid or similar template files. The code includes a <select> element with various nationality options.
  • However, this approach has a limitation: the nationality value would only save to the customer note field, not a more structured location.

Alternative Approach:

  • For more robust data storage (such as customer metafields or the default country address field), using the Helium Customer Fields app is recommended. This app allows custom registration forms that collect specific data and can connect to Shopify’s API.
  • Alternatively, building a custom or public app would be required to properly integrate with Shopify’s API.

Status: The discussion provides both a quick code solution and a more scalable app-based option, but remains open regarding which approach the original poster will implement.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

How to add a nationality drop down menu in the sign up page as mandatory field for my customers to fill up.

Hi @juliusphilip
You can add it like this


Please add it to the appropriate file like customers/register.liquid or sections/main-register.liquid
and update the nationality options as per you need

Please press Like and Mark Solution if you find it helpful.

Thanks!

Hey @juliusphilip !

The code provided by @pawankumar looks to be a good option if you want to code this yourself into the registration form, however the main limitation here is that this value would only end up getting saved into the customer note.

If you would like to save the nationality value into more a useful place such as a customer metafield or the customer’s default address country field, you would need to use either a custom or public app to connect to Shopify’s API. One option for this would be the Helium Customer Fields app, which allows you to create custom registration forms to collect whatever data you want when customers are signing up.

1 Like