Forums

help with tabs

csdpl 10 Aug, 2014
Hi,

Need advice on the following situation:

We've integrated the solution found here http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2660-how-can-i-build-a-tabbed-form.html into our chronoforms. We had to make a few changes to the look and feel of the tabs, so had to put in a couple of div's to the ones already present.

Now, consider a situation where tabs 1,2 and 3 are present in a chronoform with tab 1 containing a mandatory field that hasnt been filled in by the user. Currently, the user is looking at tab 3 and clicks on the submit button, this would automatically "activate" tab 1 and show him the little popup beside the mandatory field (this is how it works in the demo -- link present in above paragraph).

In our case, tab 1 doesnt get "activated" automatically , clearly there must be some dependency on the div structure which has been changed by us.

Any advice would be greatly appreciated.
csdpl 12 Aug, 2014
Update: We've been comparing our code with the solution found here http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2660-how-can-i-build-a-tabbed-form.html

We've followed the steps as explained there and have found one major difference which we suspect is the root cause of the problem (not sure though, just a guess) - the script "formcheck-jpane.js" is found in the demo, but doesnt load in our case. If this js loaded in our case, maybe the correct tab will activate by itself when a mandatory field validation is violated by a field in that tab ?
GreyHead 13 Aug, 2014
Hi csdpl,

Please check your installation to make sure that the file is there. It should be at: /components/com_chronoforms/js/formcheck/formcheck-jpane.js

If it is then please post or PM a link to the form and I'll take a look. Joomla! 3 changed the way that JavaScript files are loaded and sometimes that can cause problems.

If it is not there, please upgrade to the latest release of CFv4 for Joomla! 3

Bob
This topic is locked and no more replies can be posted.