Calculate and then clear field?

Hi,
Just wondering if the following situation is possible:
Field 1 is where we collect an integer/long number (eg. 4719492)
Field 2 stores the result of performing a calculation on Field 1 (eg.
4719492 * 55 *1.2)

But, I do NOT want to collect/store the original number entered in Field 1
as it is confidential. I only want to store the result of Field 2.
Is there a way, at some point during form completion, to clear the data
entered into Field 1 and when it is sent to ODK Aggregate to simply be blank

Thanks

Ben

Not natively in ODK Collect. The would require writing an external widget
to ask for that first number, and have that widget return the computed
value. See
https://opendatakit.org/help/form-design/examples/#string_3rd_party and the
corresponding widgets for integer and decimal values.

(This capability is available in the ODK 2.0 tools through the use of
"session variables".)

ยทยทยท On Sat, Nov 22, 2014 at 11:59 AM, Ben Sharif wrote:

Hi,
Just wondering if the following situation is possible:
Field 1 is where we collect an integer/long number (eg. 4719492)
Field 2 stores the result of performing a calculation on Field 1 (eg.
4719492 * 55 *1.2)

But, I do NOT want to collect/store the original number entered in Field 1
as it is confidential. I only want to store the result of Field 2.
Is there a way, at some point during form completion, to clear the data
entered into Field 1 and when it is sent to ODK Aggregate to simply be blank

Thanks

Ben

--

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