Portal Engine
Version 3.x > Portal Engine > Using CountrySelector with BizForms ignors DefaultValue View modes: 
User avatar
Member
Member
fr-clmm - 12/9/2008 9:26:49 AM
   
Using CountrySelector with BizForms ignors DefaultValue
I use the CountrySelector FieldType in a BizForm on a page...

There defined a default value like "Germany" but the preselected value is always USA, why?

I haven't found any option or information how to change this pre-selection...

used version: 3.1a

Thx
Florian

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/10/2008 4:48:11 AM
   
RE:Using CountrySelector with BizForms ignors DefaultValue
Hi,

You can change the default country by adding some value to the "Default value" field of the country selector form control in the form fields definition.

The value can be the ID of the country or the name. Please note that the value should be in format:
<country>;<state> if the country has some states
<country>; if no states are available.

So, for example for Australia:
- using ID: 284;
- using name: Australia;

Best Regards,
Juraj Ondrus

User avatar
Member
Member
fr-clmm - 12/10/2008 7:37:07 AM
   
RE:Using CountrySelector with BizForms ignors DefaultValue
Thanks Juraj,

i haven't known that i have to use the semilicolon ";" behind the country...

kind regards
Florian