Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Userform: Country Drop Down List


Go to End


2 Posts   3254 Views

Avatar
jester12345

Community Member, 8 Posts

18 June 2009 at 4:02am

Many of our forms need a country drop-down list. The site admins are getting tired of having to type in the same 57 countries over and over again for each new form they create (lots of landing pages...).

How do I create a new field type that has pre-populated data?

Avatar
Fuzz10

Community Member, 791 Posts

19 June 2009 at 3:34am

Edited: 19/06/2009 3:35am

Hmmm...

You could try manually adding a CountryDropdownField to the form (with a Decorator maybe?)

See :
http://doc.silverstripe.com/doku.php?id=form-field-types