Originally, I had an issue with my label from one tab of a multi-tab form that would display even if you never opened the tab. I was able to suppress it by making a change the translation code. But now it doesn't display at all even when you enter information or check the boxes in the tab. Can you help me understand why my label no longer prints?
The label I want to print is "SS Needs Assessment"
Here is the code:
{IF (STR(DOCUMENT. THE_BELOW_QU, DOCUMENT. Z1___DO_YOU_F, DOCUMENT. Z2___DOES_YOU, DOCUMENT. RADIO2) == "") THEN "" ELSE ("
" + FMT("SS Needs Assessment ", "B,1") + "
") ENDIF}
{(CFMT(DOCUMENT.THE_BELOW_QU, "", "The below questions were answered by: ", "B", "
"))}{CFMT(DOCUMENT.Z1___DO_YOU_F, "", "1. Do you feel safe at home? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE, "", "", "B", "
")}{CFMT(DOCUMENT.Z2___DOES_YOU, "", "2. Does your family have an okay place to sleep? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE2, "", "", "B", "
")}{CFMT(DOCUMENT.RADIO2,"","3. In the past month, did you ever eat less than you needed
because there was not enough money or food? ","B","
")}{CFMT(DOCUMENT.MULTI_LINE3, "", "", "B", "
")}{CFMT(DOCUMENT.Z4___DO_YOU_W, "", "4. Do you worry about your mental health? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE4, "", "", "B", "
")}{CFMT(DOCUMENT.Z5___DO_YOU_W, "", "5. Do you worry about your alcohol or drug use? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE5, "", "", "B", "
")}{CFMT(DOCUMENT.Z6___DO_YOU_N, "", "6. Do you need help getting health insurance for yourself or your family? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE6, "", "", "B", "
")}{CFMT(DOCUMENT.RADIO3,"","7. Are any of your needs urgent? For Example, I don't have food tonight. Or I don't have a place to sleep tonight. ","B","
")}{CFMT(DOCUMENT.MULTI_LINE7, "", "", "B", "
")}{CFMT(DOCUMENT.GENERAL_COMM, "", "General Comments ", "B", "
")}
FMT(“SS Needs Assessment “, “B,1″)
I noticed that the code you posted on the SS Needs Assessment has a single quote next to the number one. Try replacing it with this:
FMT("SS Needs Assessment ", "B,1")
You are absolutely right, it does appear to be a single quote here and even though I cut and pasted from my form, when I checked the code in the form, it actually does have a double quote. Not sure why it came over that way.
Thanks
It is difficult to say without seeing the rest of the form. However, the expression above would only be expected to display the label if 3 particular items were completed. Other items on the page would not affect it. Are any of those items completed and do they display?
The items that affect the display of the label are:
Do you feel safe at home?
Does your family have an okay place to sleep?
In the past month, did you ever eat less than you needed because there was not enough money or food?
You might think about using a "Suppression block" in this type of situation. You would place a "begin suppression block" on the label for the section and then an "end suppression block" on the last item in the section. If you do that you should be able to use the original expression that "showed up all the time" without creating your custom condition.
Yes, in each case, at least one of the questions were answered and sometimes all of the questions were answered. I have already tried using the suppression block to get the label to only display when data was entered but that did not work. It has worked for me in the past. I think there is something quirky about this particular form. Here is all of the translation:
{/*START OF FORM TRANSLATION BODY*/
}{}{IF (STR(DOCUMENT.HAVE_YOU_HAD, DOCUMENT.DO_YOU__OR_Y, DOCUMENT.ARE_YOU__OR, DOCUMENT.DO_YOU_REGUL, DOCUMENT.HAS_IT_BEEN) == "") THEN "" ELSE ("
" + FMT("WCHS Agency Form ", "B,2") + "
") ENDIF}{IF (STR(DOCUMENT.HAVE_YOU_HAD, DOCUMENT.DO_YOU__OR_Y, DOCUMENT.ARE_YOU__OR, DOCUMENT.DO_YOU_REGUL, DOCUMENT.HAS_IT_BEEN) == "") THEN "" ELSE (FMT("STD Screening ", "B,1") + "
") ENDIF}{CFMT(DOCUMENT.HAVE_YOU_HAD, "", "Have you had a new partner since your last STD test? ", "B", "
")}{CFMT(DOCUMENT.DO_YOU__OR_Y, "", "Do you (or your partner) have multiple sex partners? ", "B", "
")}{CFMT(DOCUMENT.ARE_YOU__OR, "", "Are you (or your partner) a man who has sex with men? ", "B", "
")}{CFMT(DOCUMENT.DO_YOU_REGUL, "", "Do you regularly use IV drugs? ", "B", "
")}{CFMT(DOCUMENT.HAS_IT_BEEN, "", "Has it been more than 1 year since your last STD test? ", "B", "
")}{CFMT(DOCUMENT.PATIENT_OPTS, "", "Patient opts out of HIV testing: ", "B", "
")}{CFMT(DOCUMENT.PATIENT_REFU, "", "Patient refuses/declines Syphilis testing: ", "B", "
")}{CFMT(DOCUMENT.PATIENT_REFU2, "", "Patient refuses/declines GC/Chlamydia testing: ", "B", "
")}{If DOCUMENT.CHECK <>"" and DOCUMENT.RADIO = "Accepted" and DOCUMENT.NUMBER_OF_CA <>"" then "Partner notification was discussed and accepted. They were given " + DOCUMENT.NUMBER_OF_CA + " partner notification cards." + HRET + HRET else "" endif}{if DOCUMENT.CHECK <>"" and DOCUMENT.RADIO = "Declined" then "Partner notification was discussed and declined." + HRET else "" endif}{If DOCUMENT.CHECK2 <> "" and DOCUMENT.CHECK3 <> "" and DOCUMENT.NUMBER_OF_PR <>"" then "Expedited Partner Therapy was discussed and accepted. They were given " + DOCUMENT.NUMBER_OF_PR + " prescriptions for Chlamydia." + HRET + HRET else "" endif}{if DOCUMENT.CHECK2 <> "" and DOCUMENT.CHECK4 <>"" then "Expedited Partner Therapy was discussed and declined." + HRET else "" endif}{If OBSNOW("EPTOFFERED") <> "" and DOCUMENT.CHECK3 = "Accepted" and DOCUMENT.NUMBER_OF_PR2 <>"" then "Expedited Partner Therapy was discussed and accepted. They were given " + DOCUMENT.NUMBER_OF_PR2 + " prescriptions for Gonorrhea." + HRET + HRET else "" endif}{IF (STR(DOCUMENT.CHECK5, DOCUMENT.PATIENT_DECL, DOCUMENT.HAVE_YOU_EVE, DOCUMENT.HAVE_YOU_EVE2) == "") THEN "" ELSE ("
" + FMT("Hepatitis C Screening ", "B,1") + "
") ENDIF}{CFMT(DOCUMENT.CHECK5,"","","B","
")}{CFMT(DOCUMENT.PATIENT_DECL, "", "Patient declines Hepatitis C Testing: ", "B", "
")}{CFMT(DOCUMENT.HAVE_YOU_EVE, "", "Have you ever been tested for HIV infection? ", "B", "
")}{CFMT(DOCUMENT.HAVE_YOU_EVE2, "", "Have you ever been tested for Hepatitis C virus? ", "B", "
")}{IF (STR(DOCUMENT.MEN_WITH_MEN, DOCUMENT.SEX_WITH_A_M, DOCUMENT.SEX_WITH_HIV, DOCUMENT.SEX_WITH_MOR, DOCUMENT.SEX_WITH_A_P, DOCUMENT.USED_INJECTI, DOCUMENT.EXCHANGED_SE) == "") THEN "" ELSE ("
" + FMT("In the last 12 months, have you participated in any of these activities? ", "B,I") + "
") ENDIF}{CFMT(DOCUMENT.MEN_WITH_MEN, "", "Men with men sex? ", "B", "
")}{CFMT(DOCUMENT.SEX_WITH_A_M, "", "Sex with a man, who has had sex with men? ", "B", "
")}{CFMT(DOCUMENT.SEX_WITH_HIV, "", "Sex with HIV-infected partner? ", "B", "
")}{CFMT(DOCUMENT.SEX_WITH_MOR, "", "Sex with more than five partners? ", "B", "
")}{CFMT(DOCUMENT.SEX_WITH_A_P, "", "Sex with a person who injects drugs? ", "B", "
")}{CFMT(DOCUMENT.USED_INJECTI, "", "Used injection drugs? ", "B", "
")}{CFMT(DOCUMENT.EXCHANGED_SE, "", "Exchanged sex for drugs/money? ", "B", "
")}{IF (STR(DOCUMENT.USED_ILLEGAL, DOCUMENT.SNORTED_DRUG, DOCUMENT.USED_OTHER_S, DOCUMENT.HAD_AN_UNREG, DOCUMENT.BEEN_A_LONG, DOCUMENT.BEEN_IN_JAIL, DOCUMENT.BEEN_ON_HEMO, DOCUMENT.HAD_A_TRANSF, DOCUMENT.HAD_AN_ORGAN, DOCUMENT.BIRTH_DATE_B) == "") THEN "" ELSE ("
" + FMT("Have you ever done any of the following? ", "B,I") + "
") ENDIF}{CFMT(DOCUMENT.USED_ILLEGAL, "", "Used illegal injection drugs? ", "B", "
")}{CFMT(DOCUMENT.SNORTED_DRUG, "", "Snorted drugs? ", "B", "
")}{CFMT(DOCUMENT.USED_OTHER_S, "", "Used other street drugs (other than alcohol)? ", "B", "
")}{CFMT(DOCUMENT.HAD_AN_UNREG, "", "Had an unregulated tattoo? ", "B", "
")}{CFMT(DOCUMENT.BEEN_A_LONG, "", "Been a long term sex partner to a person with Hepatitis C infection? ", "B", "
")}{CFMT(DOCUMENT.BEEN_IN_JAIL, "", "Been in jail or prison? ", "B", "
")}{CFMT(DOCUMENT.BEEN_ON_HEMO, "", "Been on hemodialysis (kidney machine)? ", "B", "
")}{CFMT(DOCUMENT.HAD_A_TRANSF, "", "Had a transfusion of clotting factors (before 1987)? ", "B", "
")}{CFMT(DOCUMENT.HAD_AN_ORGAN, "", "Had an organ transplant (before 1992)? ", "B", "
")}{CFMT(DOCUMENT.BIRTH_DATE_B, "", "Birth date between 1945 and 1965. ", "B", "
")}{"
"}{CFMT(ORDER_LIST_CHANGES(),"","Orders Placed today:
","B","")}{"
"}{"
"}{IF (STR(DOCUMENT. THE_BELOW_QU, DOCUMENT. Z1___DO_YOU_F, DOCUMENT. Z2___DOES_YOU, DOCUMENT. RADIO2) == "") THEN "" ELSE ("
" + FMT("SS Needs Assessment ", "B,1") + "
") ENDIF}{"
"}{(CFMT(DOCUMENT.THE_BELOW_QU, "", "The below questions were answered by: ", "B", "
"))}{CFMT(DOCUMENT.Z1___DO_YOU_F, "", "1. Do you feel safe at home? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE, "", "", "B", "
")}{CFMT(DOCUMENT.Z2___DOES_YOU, "", "2. Does your family have an okay place to sleep? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE2, "", "", "B", "
")}{CFMT(DOCUMENT.RADIO2,"","3. In the past month, did you ever eat less than you needed
because there was not enough money or food? ","B","
")}{CFMT(DOCUMENT.MULTI_LINE3, "", "", "B", "
")}{CFMT(DOCUMENT.Z4___DO_YOU_W, "", "4. Do you worry about your mental health? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE4, "", "", "B", "
")}{CFMT(DOCUMENT.Z5___DO_YOU_W, "", "5. Do you worry about your alcohol or drug use? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE5, "", "", "B", "
")}{CFMT(DOCUMENT.Z6___DO_YOU_N, "", "6. Do you need help getting health insurance for yourself or your family? ", "B", "
")}{CFMT(DOCUMENT.MULTI_LINE6, "", "", "B", "
")}{CFMT(DOCUMENT.RADIO3,"","7. Are any of your needs urgent? For Example, I don't have food tonight. Or I don't have a place to sleep tonight. ","B","
")}{CFMT(DOCUMENT.MULTI_LINE7, "", "", "B", "
")}{CFMT(DOCUMENT.GENERAL_COMM, "", "General Comments ", "B", "
")}{IF (STR(DOCUMENT.THE_BELOW_QU, DOCUMENT.Z1___DO_YOU_F, DOCUMENT.MULTI_LINE, DOCUMENT.Z2___DOES_YOU, DOCUMENT.MULTI_LINE2, DOCUMENT.RADIO2, DOCUMENT.MULTI_LINE3, DOCUMENT.Z4___DO_YOU_W, DOCUMENT.MULTI_LINE4, DOCUMENT.Z5___DO_YOU_W, DOCUMENT.MULTI_LINE5, DOCUMENT.Z6___DO_YOU_N, DOCUMENT.MULTI_LINE6, DOCUMENT.RADIO3, DOCUMENT.MULTI_LINE7, DOCUMENT.GENERAL_COMM) == "") THEN "" ELSE ("
") ENDIF}{IF (STR(OBSNOW("ADLTSEXASSLT"), OBSNOW("HXSEXASSAULT"), OBSNOW("ABUSEHX"), DOCUMENT.COMMENTS) == "") THEN "" ELSE ("
" + CFMT("Inter Personal Violence ", "B,2") + "
") ENDIF}{CFMT(OBSNOW("ADLTSEXASSLT"), "", "Do you feel threatened or intimidated in your current romantic/sexual relationship? ", "B", "
")}{CFMT(OBSNOW("HXSEXASSAULT"), "", "Have you ever been forced into sexual activity against your will? ", "B", "
")}{CFMT(OBSNOW("ABUSEHX"), "", "Have you been hit, slapped, kicked, punched or hurt by a romantic partner or ex-partner? ", "B", "
")}{CFMT(DOCUMENT.COMMENTS, "", "Comments: ", "B", "
")}
----------------------------------
Translation for page 2
Translation for page 3
Translation for page 4
Translation for page 5
I don't see anything wrong just looking at the translation. You might consider running a MEL trace to see if you can see the expression firing and what it is doing...