Hi, how can I make the Country Selector default to Blank in the drop down list? the current value is defaulting to my Country but I want to give the visitor the option to select a Country or just leave this non-mandatory field Blank...
Thanks
Naser
Hi, how can I make the Country Selector default to Blank in the drop down list? the current value is defaulting to my Country but I want to give the visitor the option to select a Country or just leave this non-mandatory field Blank... Thanks Naser |
The best I can think of is to add an entry into the db directly for the Country list. It has to be added to the db directly as adding to the predefined values list will not save a blank value. You can use the following query (or modified as desired): INSERT INTO `sys_pre_values` (`Key`, `Value`, `Order`, `LKey`, `LKey2`, `LKey3`, `Extra`, `Extra2`, `Extra3`) VALUES ('Country', ' ', '0', '--Any--', '', '', '', '', ''); Clear cache afterwards. This will enter a blank value for the country - although your users see --Any-- Note: using the --Any-- (or equivalent) will also make using this field in the search parameters easier. caredesign.net |
Thanks a lot I really appreciate your reply... I added it and it works great... how can I make "Any" as the default instead of my Country? I don't know why but it is now defaulting to Canada... Thanks again... |
try adding: 'value' => ' ',
to the code for the country field caredesign.net |