Hi there, I am looking for some code to be able to send a data display to the chart note once a button is selected. I will need to do this for multiple obs in the form. I am trying to get the data display fields to populate the chart note only if we select the action button.
I have tried to do this with a "setvalues" type with something like this in the value field
{LIST_OBSPREV('ETPLAN','Signed','list','valuedate')}
I also thought maybe I could create a edit field, have the action button populate the edit field and then display from there but that did work.
Any ideas would be great, thanks!
I would create a hidden checkbox that would be set from the action button, then in the translation for the data display I would check if the checkbox is set, if it is then show the translation in the note, else don't.
OR
don't use an action button, and just use the checkbox (not hidden), then you can turn it on/off as needed.
Jerroll,
You read my mind. I had an older form that I did that with, used check box with a document variable as Trans_All then simply applied that to each translation I wanted to convert.
Thanks for the reply!
George
Hello
I was wondering if either one of you could help me. I built a hx form for our providers and it was all great when we were using 9.5 but now that we have moved to 9.8 I am having issues with the Family history. In our form they were able to view and add information within the form. Now that we need to re-enter the Family history I changed the field to a data box and added a button to bring in the FH form to add the FH information correctly. Anyway the issue I am having is the family history is now duplicating in the note. I would like some help with building that checkbox to remove the content from the note on our Hx form. I am not all that great with MEL yet so any help would be great.
Thanks!
-Alex
that's probably because you're translating from the data display and the entry form both. I would add a hidden checkbox on the form with the data display, and in your data display add a check if the checkbox is null then display the data display translation. then in your button to add the entry form, set the checkbox to anything so the data display translation won't translate, but the entry form fields will.