Country Selector DropDown Silverstripe


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $countryDD = new CountryDropdownField('iso_3166_countryCode', 'Land', $value="DE");
  2. $countryDD->setHasEmptyDefault(true);
  3. $countryDD->setEmptyString('Land');
  4.  
  5. $fields->push($countryDD);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.