Info
- 3 posts
- 2 voices
- Started 2 years ago by Null
- Latest reply from Null
- This topic is resolved
How to preselect a value in the forum dropdownlist?
-
- Posted 2 years ago #
Hi,
With
<?php forum_dropdown(); ?>I get a dropdowlistbox that shows all the forums on my forum. Works great, but how can I get the dropdownlistbox to preselect a forum instead of showing the first one in the list?Tried:
<?php forum_dropdown(2); ?>Where 2 = forum id of the preselected forum
<?php forum_dropdown('Forum2'); ?>Where Forum2 is the name of the preselected forumAny ideas?
Kind regards,
-
- Posted 2 years ago #
<?php bb_forum_dropdown( array( 'selected' => 2 ) ); ?> -
- Posted 2 years ago #
Ahhhh so simple once you know how to do it :) Thanks a lot, it worked!
-
You must log in to post.