docs

Forms: Which One Should I Choose?

To display and edit data in a form, OpenUI5 offers various form controls that are suitable for different use cases. This documentation outlines which form controls are available, and what features are supported by each one.

The following table gives an overview of form controls and their usage:

Overview of Form Controls and Supported Features

Form [\(`sap.ui.layout.form.Form`\)](https://ui5.sap.com/#/api/sap.ui.layout.form.Form) Simple Form [\(`sap.ui.layout.form.SimpleForm`\)](https://ui5.sap.com/#/api/sap.ui.layout.form.SimpleForm)
Flexibility 1 3
Simplicity 3 1
Performance 1 3
Automatic responsive design ![Yes](/docs/02_Read-Me-First/images/loio3cb17ee88aed44d2bf1d14b97728c709_LowRes.gif) ![Yes](/docs/02_Read-Me-First/images/loio3cb17ee88aed44d2bf1d14b97728c709_LowRes.gif)
Accessible design ![Yes](/docs/02_Read-Me-First/images/loio3cb17ee88aed44d2bf1d14b97728c709_LowRes.gif) ![Yes](/docs/02_Read-Me-First/images/loio3cb17ee88aed44d2bf1d14b97728c709_LowRes.gif)
Controls inside are OData-bindable ![Yes](/docs/02_Read-Me-First/images/loio3cb17ee88aed44d2bf1d14b97728c709_LowRes.gif) ![Yes](/docs/02_Read-Me-First/images/loio3cb17ee88aed44d2bf1d14b97728c709_LowRes.gif)
Granular structure of a form control ![Yes](/docs/02_Read-Me-First/images/loio3cb17ee88aed44d2bf1d14b97728c709_LowRes.gif) ![No](/docs/02_Read-Me-First/images/loio5befb5af20ed42fd9052a99014d953a3_LowRes.gif)

Legend:


Use Cases


Form

Use sap.ui.layout.form.Form if you want to do the following:


Simple Form

Use sap.ui.layout.form.SimpleForm if you want to do the following:


Recommendations


Do not nest layouts and forms

Nesting can lead to undesired issues.


Do not use other forms or layout controls

Using any other form or layout control (for example,  HBox) as children of a form can lead to issues with accessibility or the responsive design. This applies to all form controls mentioned.


Use different form controls for different application requirements

Use the Form for performance-critical applications and also to have the most flexible design. Use the SimpleForm if you want the least complexity.