Re-populate checkboxes |
[eluser]zxcv[/eluser]
I have a form where a user fills in a reportform. The report is availible for edit, it retrieves the information from the database and shows the same form but with the previous information. However checkboxes and dropdownmenus are not re-populated, how do I make them set "automatically"? Thank you zxcv
[eluser]samitrimal[/eluser]
try Code: For checkbox Code: <select> If it doesnt work show ur source code
[eluser]Kamarg[/eluser]
If you're using the form helper functions (form_dropdown, form_checkbox, etc) you can pass a default value to them that will automatically select/check the correct items.
|
Welcome Guest, Not a member yet? Register Sign In |