Requiring a State/Province only if US or Canada
Posted:
January 9th, 2012, 9:51 am
by philipt18
Is there a way to require a state/province in the custom reg fields only if US or Canada are selected in the country listing (which I have set up as a menu)? Thanks.
Re: Requiring a State/Province only if US or Canada
Posted:
January 9th, 2012, 9:26 pm
by Eduan
Please try this post and tell me if it helps:
viewtopic.php?f=4&t=15715The idea is to collect, when they register, the fields and use things similar to what's on this video:
http://www.s2member.com/custom-fields-d ... lly-video/Hope this helps.
Also remember to report back,
otherwise you leave me worrying.
Re: Requiring a State/Province only if US or Canada
Posted:
January 10th, 2012, 3:15 am
by philipt18
The first topic seems to be discussing using shortcodes to determine a user's settings after they've registered, but I need a conditional while they're registering.
The second series of videos is interesting, although it seems to make changes before the registration page is loaded, and thus doesn't affect my issue of wanting to dynamically change the registration page based on the user selection.
For example, if the user selects either United States or Canada, then the State/Province drop-down would populate with States and Provinces (or better yet if the US is selected it fills with US States and if Canada is selected it fills with Canadian Provinces).
Basically, my goal is to eliminate incorrect information in the database. Right now I have a required city field, a non-required state/province field (since most countries don't need this), and a required country field. The problem is that some people who should be filling in the state/province field are not doing so since it is not required. Also, since there is no verification for States/Provinces, I am getting a mish-mash of formats (two-letter codes, written out, etc.).
What I want is that State/Province be a required field, but only settable if the user already selected US or Canada as their country.
Re: Requiring a State/Province only if US or Canada
Posted:
January 12th, 2012, 5:52 am
by Cristián Lávaque
Yes, I know what you want to do. I'm afraid that custom fields don't work between them dynamically based on the data entered.