Hello,
I have created a pulldown menu and am using the elgg_view('input/pullown) method. I was wondering if anyone knows a simple way to pre-select a default option in the pulldown menu while using this method. Thank you.
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.
- Team Webgalli@webgalli

Team Webgalli - 0 likes
- wink2010@wink2006

wink2010 - 0 likes
- ihayredinov@ihayredinov

ihayredinov - 0 likes
You must log in to post replies.pass value=>'your_value'.
Thank you Team Webgalli. Could you elaborate just a bit on how to implement that?
In Elgg 1.8
elgg_view('input/dropdown', array(
'name' => 'my_dropdown',
'options_values' => array(
'option1' => 'value1',
'option2' => 'value2',
'option3' => 'value3'
),
'value' => 'option3'
));