So I know how to push variables to an obs term and make this happen, I'm wondering if/how to make it do this without the edit field being a tied to an obs. I already have the form to document a certain way, in which variables are being pushed here's the code for that:
?
{fn ListBoxResultA(hcstr,hdstr,cstr,dstr,ostr) {
local fullStr = ""
if (size(hcstr) > 0) or (size(hdstr) > 0) then
fullStr = hret + " See HPI for further details " + hret
endif
if (size(cstr) > 0) then
fullStr = hret + " COMPLAINS OF " + toupper(cstr) + ". " + hret
endif
if (size(dstr) > 0) and (size(fullStr) > 0) then
fullStr = fullstr + " Denies " + dstr + ". " + hret
else if (size(dstr) > 0) and (size(fullStr) = 0) then
fullStr = hret + " Denies " + dstr + ". " + hret
endif endif
if (size(ostr) > 0) and (size(fullStr) > 0) then
fullStr = fullstr + " " + toupper(ostr) + ". " + hret
else if (size(ostr) > 0) and (size(fullStr) = 0) then
fullStr = hret + " " + toupper(ostr) + ". " + hret
endif endif
return fullStr
}}
{fn ListBoxTranslationA(label,hcstr,hdstr,cstr,dstr,ostr) {
local fullStr = ListBoxResultA(hcstr,hdstr,cstr,dstr,ostr)
return cfmt(fullStr, ",1", label + ": ", "B,1", "")
}}
Then in the translation for each section is something like this:
{ListBoxTranslationA(
"General",DOCUMENT.CHECK,DOCUMENT.CHECK2,DOCUMENT.GENERAL,DOCUMENT.LISTBOX,DOCUMENT.MULTI_LINE)}
Do you need to edit anything? Couldn't you just use a data symbol instead?
I figured it out I just used the:
{ListBoxTranslationA(
"General",DOCUMENT.CHECK,DOCUMENT.CHECK2,DOCUMENT.GENERAL,DOCUMENT.LISTBOX,DOCUMENT.MULTI_LINE)}
For the Edit field.