info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
- Trajan@Trajan
Trajan - 0 likes
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
- Trajan@Trajan
Trajan - 0 likes
You must log in to post replies.I'm puzzled. There is already a standard pulldown view.
Why are you creating your own?
@Kevin - this is not in your forms plugin. ;-)
Should have been more specific. Adding pulldown to form read as Adding a pulldown field to a form
This is plugin development group right?
I wasn't referring to my plugin.
I was referring to the standard input/pulldown view.
Take a look at the code in views/default/input/pulldown.php
(Although it is slightly broken - the fix is in SVN).
If you grep for "input/pulldown" in the source tree you will find several examples of how to use it.
Basically you pass an internalname, a value and a list of options. There are two formats for options depending upon whether you want to distinguish between option labels and values.
@Kev - thanks buddy. I've found the answer, just testing it now.