Changing the default values in Form Generator

How can I change the default values in a form generated by the Bootstrap 4 Form Generator. I find that for the majority of forms that I create col-sm-2 is too narrow and I am having to do a search and replace on that and col-sm-10 each time. Typically I am after col-sm-4 and col-sm-8 respectively.

Is there a quicker, better, more permanent way to make this common change? I have many pages with many forms already in existence, and many more to create.

Are you sure you are referring to the table generator? The code you show is generated by the Form generator and probably with the “Table Rows” option enabled.

Well spotted, I meant Form Generator (I’ll change my original post) but I do not enable the “Table Rows” option. To be honest, I’m not sure what it does.

Well, if you don’t want to deal with column widths, you can check the form layout to vertical.
This way the labels will be above the inputs, opposite to next to them :slight_smile:

Otherwise you can use the UI for adjusting column widths.

We definitely want the columns.
Using the UI to adjust column widths is quite a log-winded process because you have to do each Label or Div element separately. So with a form of 35 input fields, that means 70 individual changes. Is there no quicker way that Search and Replace?

No, there is no a quicker way.

I have similar problem with the default form generator settings. In general the label columns are too narrow and the input columns are too wide. Most of my forms only need 2 to 4 columns maximum for the data. Long text entries are handled in text area inputs. Some way to set defaults would be a very nice addition.

2 Likes

For instance in New Project offer different Custom User Preferences including “templates”
for rendering Forms , etc.

So that Selecting Form generator in THAT project gives new default preferences for many parameters that a particular Client dictates should be used over & over.

Instead of modifying from scratch each column parameters from CSS to DOM

in a large, multi input form.

Some way to create different Generate Form templates.

Say, after project form is altered to “perfection” then
“Would you like to save this Form as a Template for re-use in other projects?”

3 Likes

@NewMedia I do like this idea. Maybe create a new Feature Request and I’ll vote for it.

Excellent idea and I vote for it also.

Good one!

Will see that we can improve the UX indeed with more project defaults.

1 Like