#✅ - Create & link to new model in Amplify studio generated forms

1 messages · Page 1 of 1 (latest)

errant sapphire
#

Hello, I was looking for a quick way to Add related model data when using an Autocomplete field on an Amplify studio generated form. Currently you can search and link to already exisitng data, but not Add new from a related form. I came across this old thread https://github.com/aws-amplify/amplify-studio/issues/318

I haven't seen any hint of such functionality in the recent versions of amplify docs. Does anyone know if such a functionality can still be quickly achieved without custom coding or has it been dumped by amplify?

GitHub

Describe the bug When I go to the Amplify Admin Dashboard and go to the Content tab I try to create a dataset for a model that is related with another model, it won't create. Following error ap...

still mantleBOT
cerulean heath
#

Hey this is currently the expected behavior. To ensure consistency and provide a better experience, we can utilize the auto generated form created for the model linked then pass the id to the model to create the relationship.

errant sapphire
#

thanks @cerulean heath for your response. So this is something we have to handle in the code using overrides and not available out of the box in the form ui builder. right?

cerulean heath
#

yes, if you are looking to create nested forms for your UI. you may be able to utilize the custom forms or a component to help with some of the UI then on the client app customize how it functions using the library.

errant sapphire
#

ok. thanks

fallen adderBOT
#

✅ - Create & link to new model in Amplify studio generated forms