You may try to resolve with Form model binding. Otherwise, please upload the code of your form.
Feb 3, 2016
2
Level 2
Fill Existing Form with Array from Model
I have simple form where users submit their info into a database.
I pull that information to an admin side where the admin can see what the users have filled out by populating that form with the users input.
I am able to grab single elements (i.e. text inputs and text fields) via $client->name but, am not sure how to populate the form with an array (checkboxes, and radio fields). When I try to do the same for array items it checks off whatever I have listed last.
How would I populate a checkbox and radio fields via the array inputs through the model?
Please or to participate in this conversation.