bootstrap-gravity-forms
bootstrap-gravity-forms copied to clipboard
Added classes for ginput_complex Name fields and others
Thanks for the great little script, I added a line that will take name (first and last) and make them inline unless on xs screens where they stack.
I was messing with form-inline / form-group, but it would keep the fields really small and hugging each other, using row + col seems to achieve the best looking setup.
form.find(".ginput_complex").addClass('form-inline').find('.ginput_left,.ginput_right').addClass('form-group');
This works pretty well!
form.find(".ginput_complex").addClass('row').find('.ginput_left,.ginput_right').addClass('col-xs-12 col-sm-6');