Pulldata

I am using pulldata to populate fields on a form
On entry of the form I can edit theses populated fields but when finalizing the form the data in the fields reverts to the pre-edited values. Is there away of saving the values of the editied fields on finalizing the form

XForms generally does not allow populating with default values then
modifying those values.

When you mark-as-finalized, the form is re-scanned, causing all the
calculations to be re-run, which will generally overwrite any existing data
with newly computed or fetched values.

You can avoid this re-calculation by using the once() function around your
calculations. That will prevent the calculation from running if you already
have a value in that field. If you then need to re-populate the field with
the default value, you would need to long-press on that field prompt and
choose to clear the value, then swipe off the page, and swipe back onto the
page to get the default value re-calculated.

··· On Thu, Dec 3, 2015 at 3:37 AM, wrote:

I am using pulldata to populate fields on a form
On entry of the form I can edit theses populated fields but when
finalizing the form the data in the fields reverts to the pre-edited
values. Is there away of saving the values of the editied fields on
finalizing the form

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thank you very much that works. I had an extensive look on the internet but
didn't come accross this function

··· On Thursday, December 3, 2015 at 1:31:34 PM UTC, keith....@gmail.com wrote: > > I am using pulldata to populate fields on a form > On entry of the form I can edit theses populated fields but when > finalizing the form the data in the fields reverts to the pre-edited > values. Is there away of saving the values of the editied fields on > finalizing the form

Our XForms processor has many custom functions.

See https://opendatakit.org/help/form-design/binding/ for the current list.

··· On Fri, Dec 4, 2015 at 5:17 AM, wrote:

Thank you very much that works. I had an extensive look on the internet
but didn't come accross this function

On Thursday, December 3, 2015 at 1:31:34 PM UTC, keith....@gmail.com wrote:

I am using pulldata to populate fields on a form
On entry of the form I can edit theses populated fields but when
finalizing the form the data in the fields reverts to the pre-edited
values. Is there away of saving the values of the editied fields on
finalizing the form

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com