I have a pregnancy intention form that I am working on. If the patient is on a birth control pill you enter in the birth control using the choices in 2 list boxes. You then ask if the patient is stratified with their current birth control. If they say "yes" to being satisfied I want it to also enter in the current birth control into another set of 2 list boxes called "end method or plan".
When I use this shortened code it works to complete the first of the 2nd list boxes:
{!IF DOCUMENT.ARE_YOU_SATI =="Yes" and DOCUMENT.ENDMETHOD =="" AND DOCUMENT.ENDMETHOD2 =="" then DOCUMENT.ENDMETHOD= DOCUMENT.CURRENTBCP ELSE "" ENDIF }
But when I add the next one in, it no longer works at all:
{!IF DOCUMENT.ARE_YOU_SATI =="Yes" and DOCUMENT.ENDMETHOD =="" AND DOCUMENT.ENDMETHOD2 ==""
THEN DOCUMENT.ENDMETHOD= DOCUMENT.CURRENTBCP AND DOCUMENT.ENDMETHOD2 = DOCUMENT.CURRENTBCP2 ELSE "" ENDIF }
Any ideas what I am doing wrong?