Popular Help Content

No popular content.

Versions Compared

Key

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

...

  • Create a new hidden value by clicking on the  in the Question Bar
  • Change the Question ID to "edd"
  • Click on "Edit" next to the Calculate Condition box
  • Drag the question "Date of Last Menstrual Period" over to the Expression Editor (Advanced) box until you see the green check mark, and then release
  • Write a "+" because we want to add something to this date
  • Type "274." Your total expression should look like this:

Image RemovedImage Added

  • At the beginning of the expression write date and then put parentheses around the expression like this: 

Image RemovedImage Added

The reason you have to write date first and then put the parentheses around the expression is that when you add an integer number to the question lmp, the result is by default stored as a string, not as a date. We have to "cast" it as a date by putting date first and then parentheses around the expression. Otherwise it will just look like a long number!

...