Relevance is a powerful feature that can be used to filter the data being submitted. Using
the nonrelevant
attribute allows to set the values:
keep
- all non-relevant nodes are kept and will be submitted.empty
- the values of non-relevant values are emptied but the nodes are preservedremove
- removes all non-relevant nodes before submission. This is the default behavior.Reload before testing other actions
In this example the submission will use the #echo
handler that just returns
the data it is getting during submit. Before submission the data are recalculated, revalidated and
filtered according to their relevance setting. The result is echoed back into the same instance replacing
the existing data.
{log('default')}