If all your data is related and should insert in the same time, you can do in 2 ways: 1- using wizard forms, user see form 1 and can click on next to see form 2 and form 2 has previous and next button, as well as form 3. All next and previous buttons handle with jquery and don't submit form except finish button on last form. 2- using vue in very easy and fun way.
Jan 18, 2018
2
Level 1
attached forms
Hi,
I have 3 linked tables with a hasMany relation.
for this 3 models i have also 3 forms to fill in specific order : fill form 1 (to generate id 1 ) then fill form 2 (to generate id 2) then fill form 3
I'm confused with views because i want to display these 3 forms like one block So let's say i fill form 1 and save it in database. I have now hidden input with id 1 in form 1.
How to display now, in the same view, form 2 and say to user " continue filling its not terminated ! " Where put the logic ? How to manage that ?
Thank you
Please or to participate in this conversation.