Skip to content

Commit

Permalink
Code style (linter error) (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
WebVPF authored Feb 20, 2024
1 parent 98a9420 commit f86ab14
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions backend/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,14 @@ status:

Dropdowns can also allow users to provide a new value. This can be activated by setting the `allowCustom` option to `true`.

status:
label: Blog Post Status
type: dropdown
allowCustom: true
```yaml
status:
label: Blog Post Status
type: dropdown
allowCustom: true
```

The `allowCustom` option can be useful to provide a preset list of options without preventing the user from adding a new or custom value.
The `allowCustom` option can be useful to provide a preset list of options without preventing the user from adding a new or custom value.

When using the `get*Options` method for defining options, you would be able to take into consideration any custom options present in the data:

Expand Down

0 comments on commit f86ab14

Please sign in to comment.