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.

Archive /

Our old forums are still available as a read-only archive.

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

Load file for dropdown menu


Go to End


2355 Views

Avatar
mano_rossa

Community Member, 2 Posts

2 March 2007 at 2:12pm

it can be better to have an other option to generate the dropdown menu in a form, by simply loadind a data-file.

This can be usefull for long list such as : countries,cities...

for example i want in my form a dropdown menu wich list all the countries in the world...it's so boring to add one by one the name of each country.

it could take 4 seconds to do it with a file.

the file should have a simple structure like :

item1⎢item2⎢item3⎢item4⎢item5 ...............item100⎢item101⎢item102...