Skip to Content

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

hi,

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.

cheers

pas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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 - https://sapui5.hana.ondemand.com/#/sample/sap.ui.layout.sample.Form354/code/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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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.