getodk / xforms-spec

The XForms-derived specification used in the ODK ecosystem. If you are interested in building a tool that is compliant with the forms rendered by ODK tools, this is the place to start. ✨⚒✨
https://getodk.github.io/xforms-spec/
30 stars 26 forks source link

Added clarification about when calculation is performed #306

Open sadiqkhoja opened 6 months ago

sadiqkhoja commented 6 months ago

Related: https://github.com/XLSForm/pyxform/issues/546

Background:

Consider a form with two textboxes, second one is calculated. Enketo and Collect both let user to change the value in the second textbox but Collect recalculates the field at the time of submission and Enketo keeps the user entered value.

I can use xforms-value-changed to achieve the same behavior in Collect i.e. to recalculate only when first textbox is edited.

We need specification to mention when client is expected to perform calculation.