José,
How did you do your form validation and ensure the right tab was open to
show the error? I am doing something similar and would like to do the
validation in the controller rather than using lots of javascript.
Thanks,
Stuart
On Thursday, April 18, 2013 at 5:15:32 PM UTC-7, Jose wrote:
>
> This worked:
>
> {{=form.custom.begin}}
>
> <ul class="nav nav-tabs">
> <li><a data-toggle="tab" href="#tab-1">View</a></li>
> <li><a data-toggle="tab" href="#tab-2">Modules</a></li>
> <li><a data-toggle="tab" href="#tab-3">Bank account</a></li>
> <li><a data-toggle="tab" href="#tab-4">Agree</a></li>
> <li><a data-toggle="tab" href="#tab-5">Confirm</a></li>
> </ul>
>
> <div class="tab-content">
>
> <div id="tab-1" class="tab-pane">
> {{=form.custom.widget.viewID}}
> # a next button here
> </div> <!-- /tab-pane -->
> <div id="tab-2" class="tab-pane">
> {{=form.custom.widget.moduleID}}
> # a previous and next button here
> </div> <!-- /tab-pane -->
> <div id="tab-3" class="tab-pane">
> {{=form.custom.widget.BIC}}
> {{=form.custom.widget.IBAN}}
> {{=form.custom.widget.holder}}
> # a previous and next button here
> </div> <!-- /tab-pane -->
> <div id="tab-4" class="tab-pane">
> {{=form.custom.widget.agreedTaC}}
> {{=form.custom.widget.agreedDirectDebit}}
> {{=form.custom.widget.submit}}
>
> </div> <!-- /tab-pane -->
> <div id="tab-5" class="tab-pane">
> # confimation message here
> </div> <!-- /tab-pane -->
> </div> <!-- /tab-content -->
>
> {{=form.custom.end}}
>
> José
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.