I am creating a form which will store the data in a document variable. My challenge is I would like to then pull this document variable into a specific spot into a chart note. I am having trouble figuring out the code to enter. I have tried a text translation among other things and I cannot get it to print.
Any ideas or suggestions are appreciated.
Thanks!
Have you considered adding a Visibility Region to your form, keeping it invisible, then adding a Data Display with your Document Variable in it and then having the Text Translation from that write your Document Variable to the Chart Note text?
There are other ways you can add the Document Variable to the Text Translation of other objects, but the above might be the easiest for you. Just remember you probably will have to reload the form afterwards or use a watcher expression to make sure that it updates properly after the Document Variable has data put into it.
If I understand, you ask a question in your form (smoker?) early in the component, but want to have the answer further down in the note?
If so,
(1) when you ask the "smoker?" question, storing to a document variable, but the Translation tab of the field should be blank.
(2) where you want the "smoker?" result to appear in the note, insert a text box.
(3) text box has no text, but in the translation tab add the CFMT command to print onto the note the "smoker?" question
I have had to do this in several forms to accommodate asking questions in one order but wanting them to print in a different order.
~Joe
You can have a document variable on the form (checkbox, edit field, whatever, etc....) but keep it's text translation empty because you do not want it to print to the chart note at that point.
Then wherever it is that you DO want the text translation to be printed to the chart note, you will put your CFMT(...) in the translation of that object, even if the object is just a blank TEXT field.
So you can insert a blank text field on the form, just for the purpose of adding the CFMT to print to the chart note at that point in the note.
See joe's answer (3).
- Beverly
Well I found the translation on the VFE form. It is all set up under the first section. So will need to edit the translation there.
Any idea why the form would be set up this way? To me it seems that it is more difficult to edit. What am I missing?