Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The way we show the answer to another question or to a hidden value is to show what we call an an output expression.  The format is <output value="..." />. Fortunately you do not have to write this out. The form builder automatically does this for you using a drag-and-drop method.

...

Let's do this for our sample form by showing the mobile user their EDD.

If we want to show the value of the hidden value "edd", you will first need a place to display it. You could show it in the label of any question but in this example we will create a label question.

...

Now to show edd in the label text.

  • Change the Label Text to "The woman's EDD is: "
  • Click on the hidden value edd and drag it over to the Label Text box. 
  • When you see the green check mark, let go and you will see the following:  <output value="/data#form/edd"/>

Dragging the question:

Image RemovedImage Added

After releasing the check mark:

Image RemovedImage Added

When you see this question on the phone the <output value="/data#form/edd"/> will be replaced by the value of EDD. So it might look like: The woman's EDD is 31/08/2014.

...

  • Click on the label question that you just made in the Question Tree and drag it until it is just underneath the question "Date of Last Menstrual Period."

Image Modified

Great work! You have completed the Advanced Form Logic tutorial! For more information go to the Common Logic and Calculations page!

After completing this tutorial, your Question Tree will look like this:

Image Modified

Return to the Application Building Tutorial Series or go on to the the Basic Case Management Tutorial.

...