Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added use of conditionals to Calculate property

...

This is only for those fields whose values are a result of some computation. For instance if we had three fields: Weight1, Weight2, Weight3.
Where Weight3 = Weight2 - Weight1.
Then the calculation property would be only for the Weight3 field and would be: /form/weight2 - /form/weight1.
You can use the "add field" link on the right hand side which lets you select a form field and it inserts the xpath expression for each field.

Use of conditionals

Let's say you want to set Weight3 to 10 only when Weight2==10, else Weight3=0;

For condicionals such as this, a form would be (/form/obs/weight2/value)==10?10:0

The "short if" works like this: condition?value_true:value_false.

Description Template

A combination of any question answers and text which can be used to describe data collected in a form. This is mostly used for mobile devices which can have a list of data collected for the same form and use the property to enable the user to differentiate between the data items without having to first open and check each one by one. This is a property of only the form item and therefore you can give it a value only when the form is selected under the Forms Pane. If you do not know the syntax used, you can click the "Add Field" link and type the name of the question you would like to be part of the form description template.

...