php-form-builder icon indicating copy to clipboard operation
php-form-builder copied to clipboard

Pre-defined values for select inputs are not set

Open badda71 opened this issue 2 years ago • 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.

badda71 avatar Jan 11 '23 12:01 badda71