I have created multi step form as below:
http://www.ryanwright.me/cookbook/drupal7/forms/multi-step
I need to transfer the same functionality to my template tpl.php file.
This is my code:
<div class="row"> <div class="panel panel-default"> <div class="panel-heading main-color-bg"> <h3 class="panel-title">Heading</h3> </div> <div class="panel-body"> <div class="col-md-12"> <?php print render($ form['firstname']); ?> </div> <div class="col-md-12"> <?php print render($ form['submit']); ?> </div> </div> </div> </div> <div class="row"> <div class="panel panel-default"> <div class="panel-heading main-color-bg"> <h3 class="panel-title">Heading</h3> </div> <div class="panel-body"> <div class="col-md-12"> <?php print render($ form['lastname']); ?> </div> <div class="col-md-12"> <?php print render($ form['back']); ?> <?php print render($ form['next']); ?> </div> </div> </div> </div>
How can I split this form to different sections?