Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-15T11:17:05-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16755 2012-01-15T11:17:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60575#p60575 <![CDATA[Re: Requiring something from a drop-down]]> viewtopic.php?f=4&t=16836&p=60574#p60574
Currently investigating, and we'll continue discussion in the other thread please. Thanks!

Statistics: Posted by Jason Caldwell — January 15th, 2012, 11:17 am


]]>
2012-01-15T11:09:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60573#p60573 <![CDATA[Re: Requiring something from a drop-down]]> Statistics: Posted by philipt18 — January 15th, 2012, 11:09 am


]]>
2012-01-15T11:04:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60572#p60572 <![CDATA[Re: Requiring something from a drop-down]]> Thanks for your patience.

Yes, this is a bug. I'm having this corrected in the next maintenance release. Until then, you can get ahead in the game if you like, by downloading the attached patch file. Unzip and upload this file, allowing it override your existing copy of /s2member/includes/classes/custom-reg-fields.inc.php

This file patches an existing installation of s2Member v111220.custom-reg-fields.inc.php.zip

Statistics: Posted by Jason Caldwell — January 15th, 2012, 11:04 am


]]>
2012-01-15T00:53:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60558#p60558 <![CDATA[Re: Requiring something from a drop-down]]> Statistics: Posted by Jason Caldwell — January 15th, 2012, 12:53 am


]]>
2012-01-11T14:04:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60245#p60245 <![CDATA[Re: Requiring something from a drop-down]]> selected="selected" attribute added:

Code:
<select name="ws_plugin__s2member_custom_reg_field_country" id="ws-plugin--s2member-custom-reg-field-country" aria-required="true" tabindex="50" class="ws-plugin--s2member-custom-reg-field">

<option value="" selected="selected">--Please Select--</option>
<option value="" selected="selected">--United States--</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
...
<option value="" select="selected">--Canada--</option>
<option value="AB">Alberta</option>
<option value="BC">British Columbia</option>
...
</select>


The browser is simply using the last selected="selected" item as the default (in this case, Canada).

I will report this to the development team and see if they know what's going on. :)

Thank you for your patience!

Statistics: Posted by Raam Dev — January 11th, 2012, 2:04 pm


]]>
2012-01-11T14:03:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60244#p60244 <![CDATA[Re: Requiring something from a drop-down]]> Statistics: Posted by philipt18 — January 11th, 2012, 2:03 pm


]]>
2012-01-11T13:51:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60243#p60243 <![CDATA[Re: Requiring something from a drop-down]]> Field Required: * = Yes ( required )) and then making your first item have a blank value (the item before the first separator):

|Please select one...|default
US|United States
CA|Canada
VI|Virgin Islands (U.S.)


I tested this and when I fill out my registration form leaving the country on "Please select one...", and then press submit, here's what I get:

Screen shot 2012-01-11 at 13.48.01 .png

Statistics: Posted by Raam Dev — January 11th, 2012, 1:51 pm


]]>
2012-01-11T13:40:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60242#p60242 <![CDATA[Re: Requiring something from a drop-down]]>
|--Select a Country--|default
US|United States
CA|Canada
...etc...

That worked. Then I tried to do something similar for states and provinces. As I don't have a way to require the state/province only if the user has selected US or Canada, I have to leave the state/province field as optional. I created a piped list of US States and Canadian provinces (reproduced in full below). Even though I added the default tag to the first line which told people to select an option (similar to the Country menu above which worked fine), it never selected that as the default. Instead, the system always selected the non-selectable line I inserted above the provinces:

|--Canada--

Why was this line selected? I have no idea. No matter what I tried, it always selected that line. As a temporary fix I removed the lines indicating United States and Canada, and just merged the two lists into a single list. Seems to be a bug. The full piped list was:

|--Please Select--|default
|--United States--
AL|Alabama
AK|Alaska
AZ|Arizona
AR|Arkansas
CA|California
CO|Colorado
CT|Connecticut
DE|Delaware
DC|District Of Columbia
FL|Florida
GA|Georgia
HI|Hawaii
ID|Idaho
IL|Illinois
IN|Indiana
IA|Iowa
KS|Kansas
KY|Kentucky
LA|Louisiana
ME|Maine
MD|Maryland
MA|Massachusetts
MI|Michigan
MN|Minnesota
MS|Mississippi
MO|Missouri
MT|Montana
NE|Nebraska
NV|Nevada
NH|New Hampshire
NJ|New Jersey
NM|New Mexico
NY|New York
NC|North Carolina
ND|North Dakota
OH|Ohio
OK|Oklahoma
OR|Oregon
PA|Pennsylvania
RI|Rhode Island
SC|South Carolina
SD|South Dakota
TN|Tennessee
TX|Texas
UT|Utah
VT|Vermont
VA|Virginia
WA|Washington
WV|West Virginia
WI|Wisconsin
WY|Wyoming
|--Canada--
AB|Alberta
BC|British Columbia
MB|Manitoba
NB|New Brunswick
NL|Newfoundland and Labrador
NS|Nova Scotia
NT|Northwest Territories
NU|Nunavut
ON|Ontario
PE|Prince Edward Island
QC|Quebec
SK|Saskatchewan
YT|Yukon

Statistics: Posted by philipt18 — January 11th, 2012, 1:40 pm


]]>
2012-01-10T10:43:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60137#p60137 <![CDATA[Re: Requiring something from a drop-down]]> Statistics: Posted by philipt18 — January 10th, 2012, 10:43 am


]]>
2012-01-09T05:54:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16755&p=60025#p60025 <![CDATA[Requiring something from a drop-down]]>
Thank you.

Statistics: Posted by philipt18 — January 9th, 2012, 5:54 am


]]>