Please replace the ??? with your data!
- URL to the FORM: Not public yet
- The browser used: Firefox
- cforms version: 11
- Your Wordpress version: 2.8.4
I have a select box with all the countries of the world, I am detecting the user's country by their IP range and want to pre-select the relevant country.
Preselection via post or get is working, but I do not want each page to forward this variable.
This is what I have tried for the option rows:
1. $fields['label'][4] = "Country|Default#country1#country2#country3#country4";
2. $fields['label'][4] = "Country|Default#country1|country1#country2|country2…";
it did not seem that selects use default vals like the above so I looked in the code and tried:
3. $fields['label'][4] = "Country#country1|country1#country2|set:country2…";
I could just re-sort my form so that the default value appears first, but then I do not know the answer.
Thanks
(and if this has been covered elsewhere I apologise but I have searched extensively)
_