appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.99k stars 3.67k forks source link

[Feature]: Make containers identical to forms #30076

Open eedwardsSGS opened 9 months ago

eedwardsSGS commented 9 months ago

Is there an existing issue for this?

Summary

Containers should have all the features and behave identically to forms.

Why should this be worked on?

Containers look identical to forms when editing. They have the same options in the content and style tabs. The only difference it seems when you add them is that forms come pre-populated with a text widget and a couple of buttons. Except there is a difference under the hood. Buttons can be set to be disabled on invalid forms and this setting works on forms but not on containers. It's confusing for users for a widget type that looks identical to a different widget type after you add it to the canvas but functions differently.

Additionally you can easily create containers by highlighting multiple widgets and selecting group, whereas adding a form widget and dragging widgets into it resizes their width and can be finicky. Allowing a user to use the easy-to-use group option and still be able to have buttons disable themselves on invalid forms would be useful.

Furthermore, this long-standing issue notes it's better to nest forms inside forms instead of containers inside forms, making all containers into forms would resolve this problem at the same time: https://github.com/appsmithorg/appsmith/issues/12255

Nikhil-Nandagopal commented 8 months ago

@eedwardsSGS that's a good point and I fully agree with this. There should be no real difference between the 2 widgets