The customizable fields of an MVC form
In Sitecore, you can customize the appearance of ASP.NET MVC (MVC) forms as well as ASP.NET Web Forms (non-MVC) forms.
By default, forms are stored in the content tree, in the Website
, Local Forms
, or Sample Forms folders (sitecore/System/Modules/Web Forms for Marketers
).
Depending on your Sitecore configuration, the location of where you store your forms can be different.
You can customize the following fields in Sitecore MVC forms:
Field |
Description |
---|---|
Form Type |
Specify the positioning of the form:
The default value is Basic. |
Form Alignment |
Specify the alignment of elements within the form:
The default value is Left. |
Right-Column Style |
Specify the width and style of the right column and define the relevant screen size:
Note The sum of the width of the right and left columns in the same row must be equal to 12. To change how the content in the column looks, you can also enter the name of a Bootstrap CSS class, for example, col-md-10 col-xs-10 col-lg-10 col-sm-10 well-lg. The default value is col-md-10 col-xs-10 col-lg-10 col-sm-10. |
Left-Column Style |
Specify the width and style of the left column and define the relevant screen size:
Note The sum of the width of the right and left columns in the same row must be equal to 12. To change how the content in the column looks, you can also enter the name of a Bootstrap CSS class, for example, col-md-2 col-xs-2 col-lg-2 col-sm-2 jumbotron. The default value is col-md-2 col-xs-2 col-lg-2 col-sm-2. |
Custom CSS Class |
Specify a custom CSS class to assign to a form field to customize a form's borders, colors, fonts, and so on. For example:
|
Submit Button Position |
Specify the position of the Submit button on your form. The options are:
|
Submit Button Type |
Specify the style of the Submit button on your form. The options are:
|
Submit Button Size |
Specify the size of the Submit button on your form. The options are:
|
Parameters |
Enter the name of the property that you want to modify on a form's class. For example, to modify the date format property, enter:
|