Formulate Pro also comes with a theme you can use that is built with Sass so you can easily tinker with changing things like colors (the downside is that it's not free, though it is very cheap): https://www.formulate.rocks/pro/basic-theme
A third option would be to tinker with the plain JavaScript template to set the markup appropriately. Here are some places you might consider doing that:
That approach would be more work (e.g., rendering all the fields, adding support for validation, etc.), but if you're a fan of Razor it may be the way to go.
A fifth approach would be to run some JavaScript on page load after the Formulate JavaScript has rendered the form. This second pass JavaScript would reorganize the DOM elements to more closely match what Bootstrap looks like.
Formulate and bootstrap layout?
Hi, new to Formulate (Free version) and I'm trying to find how you can design the layout to work with bootstrap forms.
I figured out that you can manipulate the CSS, but is it to possible to directly set it to match with the existing Bootstrap CCS?
e.g. my current contact page (not using Formulate):
New contact form using formulate:
The easiest way is probably to do it with CSS.
Formulate Pro also comes with a theme you can use that is built with Sass so you can easily tinker with changing things like colors (the downside is that it's not free, though it is very cheap): https://www.formulate.rocks/pro/basic-theme
A third option would be to tinker with the plain JavaScript template to set the markup appropriately. Here are some places you might consider doing that:
That approach has the downside that integrating your changes with future Formulate upgrades would be problematic.
A fourth approach would be to completely render a custom template in Razer. Here are some files you can use for inspiration if you take that approach:
That approach would be more work (e.g., rendering all the fields, adding support for validation, etc.), but if you're a fan of Razor it may be the way to go.
A fifth approach would be to run some JavaScript on page load after the Formulate JavaScript has rendered the form. This second pass JavaScript would reorganize the DOM elements to more closely match what Bootstrap looks like.
My recommendation would be to use CSS to achieve the Bootstrap look you're after. This page has some tips on styling forms (e.g., the grid): https://www.formulate.rocks/plain-javascript/styles
Nicholas's 'fifth approach' is fairly simple and works very well, I used it for my contact form layouts
Thanks @Nicholas, I'll check it out!
@Huw would you mind sharing an example to help me get started?
for mine, I just did this
is working on a reply...