The Twitter Bootstrap Form Wizard requires a <form class="form-horizontal mt-sm" action='' method="POST">
for every tab.
I have changed it into {{ Form::open(['route' => 'myroute', 'class' => 'form-horizontal mt-sm']) }}
Do I need to do a {{ Form::close() }}
for each of these? Since there’s only one submit button at the end, what would be the right way to go about this then? Just one form closing? Or one for each opening?
3
Answers
I tried both answers above, but then a hybrid version worked for me, whereby I had multiple {{ Form:: open() }} but only one {{ Form::close() }}. There was only one {{ Form::submit() }} before the form closure.
You need to use
{!! Form::close() !!}
closing clause for each opening one:If you have only one submit button, you need to open it only once, so your code will be:
Hope this works!