Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code style (linter error) #172

Merged
merged 2 commits into from
Feb 20, 2024
Merged
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
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
Loading