SparkyRih Posted December 16, 2016 Share Posted December 16, 2016 I'm using the helperForm() to create 4 forms which are displayed on one page, they all have their own submit button (which submits all forms at once)... So I'd like to split these forms into tabs rather than put them on one page... I can't find any info, or any module that implements this so that I can look at any example... Link to comment Share on other sites More sharing options...
SparkyRih Posted December 16, 2016 Author Share Posted December 16, 2016 Nevermind, I found the solution by reading the helperForm.php file, it's actually pretty easy: For some reason I can't paste anything, so pretty much what I needed to do is: Add the tabs in the forum: 'tabs' => array( 'TAB1' => 'General', 'TAB2' => 'Next tab' ), And than put the controls in their tabs 'input' => array( array( 'type' => 'switch', 'tab' => 'TAB1', ), ), Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now