Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-defined values for select inputs are not set #15

Open
badda71 opened this issue Jan 11, 2023 · 0 comments · May be fixed by #16
Open

Pre-defined values for select inputs are not set #15

badda71 opened this issue Jan 11, 2023 · 0 comments · May be fixed by #16

Comments

@badda71
Copy link

badda71 commented Jan 11, 2023

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 badda71 linked a pull request Jan 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant