Open nootn opened 5 months ago
Hey @nootn, thank you for reaching. Marking this as feature request for customType
enhancement on form generation.
The customType
is present in the model introspection schema. So this could be a bug or a feature for UI. @AnilMaktala
Environment information
Description
In a Schema, when you create a
customType
for nested data, then runnpx ampx generate forms
, the generated forms will only have input fields for the types on the root level, not the custom type. For example if I have some Device which has gps information, I might structure the data like this:I will get text boxes for
tenantId
,name
andstatus
, but nothing for thegps
data. It can be beneficial to model data like that for other reasons, but at the moment it means you lose the ability to have working forms generated.As a feature request: I expect it to generate a form with fields for the nested data, possibly in a fieldset or with a heading separating them.