bootstrap-gravity-forms icon indicating copy to clipboard operation
bootstrap-gravity-forms copied to clipboard

Added classes for ginput_complex Name fields and others

Open Jeradin opened this issue 10 years ago • 0 comments

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');

Jeradin avatar Apr 21 '14 17:04 Jeradin