Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It allows users to set up a field's default value from an existing field on the
- When a form field has been populated in the backend by a DET or API call - `@DEFAULT` cannot handle this.

#### @DEFAULT-WHEN-VISIBLE
If the field is visible it sets the initial value otherwise it removes the value. This is mainly useful in fields which are visible and hidden by branching logic, e.g. `@DEFAULT-FROM-FIELD="10"`.
If the field is visible it sets the initial value otherwise it removes the value. This is mainly useful in fields which are visible and hidden by branching logic, e.g. `@DEFAULT-WHEN-VISIBLE="10"`.

#### @DEFAULT-FROM-PREVIOUS-EVENT
Sets a field's default value based on its own value in a previous event. To map the default value from another field, you may specify the source as a parameter to the action tag, e.g `@DEFAULT-FROM-PREVIOUS-EVENT="source_field"`.
2 changes: 1 addition & 1 deletion includes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function auto_populate_fields_action_tag_semaphore($misc, $action_tag, $return_v
function auto_populate_fields_get_priority_queue() {
return array(
'@DEFAULT',
'@DEFAULT-ON-VISIBLE',
'@DEFAULT-WHEN-VISIBLE',
'@DEFAULT-FROM-FIELD',
'@DEFAULT-FROM-PREVIOUS-EVENT',
);
Expand Down