joshcanhelp/php-form-builder

Pre-defined values for select inputs are not set

badda71 opened this issue · 0 comments

When generating a select-Input the given value is neglected and always the first option ist set initially.
E.g.
$form->add_input("Field", array("type" => "select", "options" => array ("1"=>"1", "2"=>"2"), "value"=>"2"), "field");
will generate a select box where "1" is selected initially, not "2".
Expected behaviour would be that "2" is selected.