Ephemeral / Temporary Fields for Variables
This explains Ephemeral aka Temporary Variable Fields. For an overview check out Understanding Data....
Note
In v14 we added data.parameters.*
which contains all parameters given in the prefill.
So in many cases, you may not even need to create ephemeral fields any more.
Sometimes you need fields which controle the Form UI without being real data. Some examples:
- Toggles which show/hide other fields or field groups
- Hidden calculations which will consolidate other field values to determine if something else is required
We don't want to save these fields as the data is not relevant, and often the value should be calculated upon opening the form - so it's important that they are reset.
These kinds of fields are ephemeral = temporary
To configure a field to not save and be temporary / ephemeral, use this setting:
Tip
Since these fields are usually used as variables, we recommend that you name the Var...
.
Example: VarShowAdvanced
.
History
- Introduced in 2sxc 12.01
- Added
data.parameters
in v14
Shortlink to here: https://r.2sxc.org/ephemeral