suv electric thing something Submitted with non-relevant nodes being removed (default) Submitted non-relevant nodes with empty values Submitted all data

Relevance processing on submit

Relevance selection works only on XML instances at this time.

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 preserved
  • remove - 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.

Live Data

                        {log('default')}