Skip to Content

sap.ui.layout.form.Form vs sap.ui.layout.form.SimpleForm

Apr 14 at 10:24 AM


avatar image


been looking into these two controls ...

while they are different controls and they are implemented slightly differently, i am struggling to understand why i would use one of them rather than the other.

they seem to do the same thing but they are implemented slightly differently.

so, why should i use a Form rather than a simple form?

any thought/comments appreciated.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sharath M G Apr 14 at 10:42 AM

SimpleForm is readily usable as a response form using the parameter: layout="ResponsiveGridLayout"

Form is generic and expects you to provide the complete design. Check the display fragment.xml -

Both are containers and allows placing labels and input controls side by side. SimpleForm makes it easier by abstracting some part of view code.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

hi Sharath,

thank you for your answer.

you seem to be saying that Simple Form is easier to implement than Form.

so, why would i choose to implement a Form rather than a simple form.

what does Form do for me that Simple form does not.




I feel, with Simple Form, due to abstraction it gives a headstart for starters. At the same time Form, with all its options open, allows you to design according to your wireframes.

I personally, found it difficulty using SimpleForm when the design custom than the standard layout.

Apart from this, they both are there for the same purpose.