Connection between model and form

If you’d like to add a field in an extended form, you first have to define it in a model.
Then you can add it to the form and manipulate it there.

If you are using a boolean field for example, you have to define ‘type’ => ‘boolean’ in the model and addControl in the form.

I’ll provide further code examples below…