Form question
Permalink
Hi,
I have a tricky one .... I am using bootstrap Tabs and in one tab I have a form block (let's say Tab4). The issue is that when I send a form, the tabset reinitializes back to Tab 1 , that means that I cannot see the confirmation message to confrm the form was sent and I don't know if I made any error ...
Has anyone any idea of how how could correct this ?
Many thanks
I have a tricky one .... I am using bootstrap Tabs and in one tab I have a form block (let's say Tab4). The issue is that when I send a form, the tabset reinitializes back to Tab 1 , that means that I cannot see the confirmation message to confrm the form was sent and I don't know if I made any error ...
Has anyone any idea of how how could correct this ?
Many thanks
What @formigo describes is pretty much how Magic Tabs does it.
http://www.concrete5.org/marketplace/addons/magic-tabs/...
http://www.concrete5.org/marketplace/addons/magic-tabs/...
Either send your form post asyncronously via AJAX, so you don't leave/refresh the page on form post.
Or, you could detect the post on the subsequent page load and setup your Boostrap tab as active based on the existence of $_POST variables.
Both options involve code, and how you implement will depend on how you're setup & how the add-ons you're using (if any) work.
Hope that's a start.