Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 564 Bytes

FormGenerator.md

File metadata and controls

21 lines (16 loc) · 564 Bytes

Form Generator Module

Variables on Models:

$formGeneratorFields must be type of array

Needs an array with

[
    'type' => 'text' // When you override it, then you can add custom data
]
static array $formGeneratorFields = [
    ['type' => 'text', 'name' => 'firstname', 'label' => 'Title', 'validations' => ['required']],
    ['type' => 'text', 'name' => 'money', 'label' => 'Wunschgehalt', 'validations' => ['required']],
    ['type' => 'tinymce', 'name' => 'message', 'label' => 'Nachricht', 'validations' => ['required']],
];