I am in the process of trying to update forms built by my predecessor and I can't figure how to keep free text in the Edit Field Box. The user has check boxes the populate that field, but when they free text and then check a box it replaces the Free text. I have tried changing from previous obs to new obs and document variable with no succees. It is frustrating to say the least.
Diabetes Educator Assessment 2 ver 17.dlg
Here is the form. You can see I added the action button, but it still erases the free text in the edit field.
The user has check boxes the populate that field, but when they free text and then check a box it replaces the Free text.
This is the code which is automatically adding SS and SS1 into your multi line box.
{FN SS()
{IF DOCUMENT.SS <> "" AND DOCUMENT.SS1 <> "" THEN ", " ELSE "" ENDIF }}
{!OBSNOW("DIAB COMPLIC",DOCUMENT.SS + SS()+ DOCUMENT.SS1)}
The ! symbol makes the line above "trigger" whenever you check or uncheck an item in SS or SS1 listboxes.
One solution would be to add another obsterm (or document variable) multiline edit field either before or after your "DIAB COMPLIC" multiline edit box. Call it DOCUMENT.SS_OTHER
Modify the !obsnow…. line to put the freetext either before or after the checkbox items, see below:
{!OBSNOW("DIAB COMPLIC",DOCUMENT.SS + SS() + DOCUMENT.SS1
+ (if DOCUMENT.SS_OTHER<>"",HRET,"") + DOCUMENT.SS_OTHER )}
Let the providers do their free texting into DOCUMENT.SS_OTHER
Let me know if that works for you
- Beverly