Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions backend/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,17 @@ public function getStatusOptions($value, $formData)
}
```

By default the dropdown has a clearing feature when placeholder is set. This can be disabled by setting the `allowClear` option to `false`.

```yaml
status:
label: Blog Post Status
type: dropdown
allowClear: false
```

>**NOTE:** This is useful in case you cast the model field that use ad dropdown with an Enumerator class to avoid `not a valid backing value for enum`

### Email

`email` - renders a single line text box with the type of `email`, triggering an email-specialised keyboard in mobile browsers.
Expand Down