Title: Can a form span multible tabs or accordion panels? Post by: andyj on July 31, 2013, 01:28:44 PM I have a large form and want it to span across multiple tabs.
It's easy enough to position the Save and Cancel buttons above the tab set. Problem is the form is only populated with data on the first tab. I have tried creating a set of nested tabs and whether I place my <form></form> inside or outside the tabs, the best that can be achieved is to have the form on one tab panel only. It is possible to spread a large form across several accordion panels provided the opening and closing form tags <form></form> remain outside the opening and closing accordion divs. Is there any way of spanning a form across multiple tabs? Title: Re: Can a form span multible tabs or accordion panels? Post by: reems on August 09, 2013, 11:47:36 AM Hello Andyj,
Can you show your script for form plus tabs to check what goes wrong? I am using forms with tabs and have no problems with them. Loading and saving data works fine. Reems Title: Re: Can a form span multible tabs or accordion panels? Post by: andyj on August 10, 2013, 10:30:48 AM Hi Reems
Do you have one form per tab? Or one form spread across several tabs? No problem with one form per tab but when spreading parts of a single form over multiple tabs I could only load data into the first tab? What was your experience? Title: Re: Can a form span multible tabs or accordion panels? Post by: reems on August 23, 2013, 01:10:01 PM Hi Andyi,
Sorry for the late reply. I have been too busy with my work. I have indeed one form with several tabs. See the attachment for a screenshot. These works perfect, no problems. A form with two tabs could look like this: Code: <script> To be able to load above form in a modal window as I did, in your basic html page, you should have by example: Code:
The following script I use for loading the data after a gridrow is selected (the gridid and formid variables are there because I use standard functions that can handle all the forms in my application): Code: <script> Posting the form is normal. no extra things because of the tabs. Hope this helps. Reems Title: Re: Can a form span multible tabs or accordion panels? Post by: andyj on August 24, 2013, 04:15:50 AM Hi Reems
Thanks very much for your detailed response. Just got back off holiday so will have a look at this with interest over the next few days. Thanks for taking the time. Appreciated. Bedankt Andy Title: Re: Can a form span multible tabs or accordion panels? Post by: acreonte82 on September 23, 2013, 05:19:40 AM I found a solution to have a form in each tab.
But you have to implement a js function to serialize your form data and then post to your php file. If you want I post my code |