-
Hiya,
I want to capture country code in my advanced registration form. I see that I can add values to the dropdown, but whatever value I add ("United States") seems to be the value displayed ("United States").
How can I add "US" and have "United States" displayed?
-
Currently the way you would do that is by using the short version in the custom field definition. This will be the programatic value that is persisted. For example:
US DEThen in your message bundle (managed by the theme), you can translate those values into a more human readable option.
US=UNITED STATES DE=GERMANYIf we do not find a localized key, we will just use the key as the value which would then render as
<option value="US">US</option>. -
D dan has marked this topic as solved on
-
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login