Reputation: 1630
With the send
action the prune
option allows the values for hidden not to be sent. This means that the "non-relevant" nodes for those values are not included in the XML. In our case we would like those nodes to be included, but empty/blank.
We are storing data for a set of forms as a single dataset. The mapping of form fields to the dataset is done using the name of the field/control. If the node isn't included then the value in our dataset will not be updated. In other words, we can have this situation:
Result:
"Will you be cutting trees?" = no
"How many trees?" = 10
Is there a way around this?
If there isn't a way currently, would it be possible for prune
to support another option like values
to support this?
Upvotes: 0
Views: 80
Reputation: 7857
EDIT:
As of Orbeon 2017.1 this is now possible using the nonrelevant
parameter for send
. See documentation.
Original Answer:
It makes sense but it's not possible right now. We have an RFE for it which seems to be exactly what you are looking for. I can't see of an easy workaround at this time.
Upvotes: 1