Skip to content

Commit

Permalink
document default, default_jinja2
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Nov 8, 2024
1 parent 27035f4 commit 0438f00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Table of contents:
- [`required`](#required)
- [`choices`](#choices)
- [`choices_helper`](#choices_helper)
- [`default`](#default)
- [`default_jinja2`](#default_jinja2)
- [`preset`](#preset)
- [`form_snippet`](#form_snippet)
- [`display_snippet`](#display_snippet)
Expand Down Expand Up @@ -415,6 +417,15 @@ You may [register your own helper function](https://docs.ckan.org/en/2.9/theming
label: N/A
```

### `default`

Pre-fill new forms with this `default` value for this field.

### `default_jinja2`

Pre-fill new forms with a jinja2 snippet defined by `default_jinja2`, useful
if you need to call a template helper function or use jinja2 logic to determine
the default value for this field.

### `preset`

Expand Down

0 comments on commit 0438f00

Please sign in to comment.