Styling of FormSections when using FormBuilder

Pete Hubbel asked on December 2, 2019 20:32

Per the documentation for FormBuilder and our experience, the FormBuilder will not honor the styling specified in FormSection partial Views unless the .CSS file(s) are copied into Content/FormSection directory of the MVC application.

For example, if the custom FormSection view HTML is

<div class="row section">
    <div class="col-lg-6">
        @Html.Kentico().FormZone()
    </div>
    <div class="col-lg-6">
        @Html.Kentico().FormZone()
    </div>   
</div>

then we must copy the bootstrap.css into the Content/FormSections directory of the MVC app.

However, this causes a conflict when the MVC application is deployed.

Is there another way to have the FormBuilder properly render FormSection views?

   Please, sign in to be able to submit a new answer.