In this HowTo we'll show you how you can build your front end forms a lot quicker using derived custom models. This HowTo starts on the point where there already is a GET endpoint which holds a form for creating a new person (firstname and lastname) and a Person model in your datamodel.
- Create a POST endpoint
- Add a custom model input variable. Choose for a new custom model, based on your Person model.
- Add the firstname and lastname properties to your new custom model.
- In the endpoint's action, create a new person by connecting your custom model's properties to the properties of a new Person. (Don't forget to redirect properly)
- Test your custom model by filling in your form. You can see a new person has been added to your back-office