Is there an Action Button function that pushes chart note text?
I have a button that prints a handout and I would like to add a function to that to push chart note text, without also pushing an observation term. So just text tp documented that the handout is printed.
I've tried adding the text into the Translation field within the Action Button setup, but the text appears in the note whether the button is activated or not. I've tried having the text entered with a begin and end suppression block in the Action Button setup, and that stopped the text from appearing altogether.
Any advise?
You can create a hidden text control (document variable not connected to OBS term) on your form (i.e. put it in a visibility region that never displays) and then populate that text control with the text you want to display in the note when the button is clicked.
What would you place into the visibility region that triggers the text?
The visibility region is only there to hide the document variable you will use to store the text you want to translate to the note. You could either use a radio button or a text control in that visibility region (radio button is probably easier; set text value of the control to what you want displayed in the note; radio button should be unchecked by default). Indicate the control is a document variable as opposed to being linked to an obs term. You can set up the translation of the text control or radio button to display the text you want displayed in the note when the user clicks on the handout button. You will need to add a line in the function you are calling when clicking the button to set the document variable in the visibility region to the text you want displayed. You can set the visibility condition of your visibility region to always be false so it never displays on the form. This is a common technique folks use when you need to store variables that will persist even after a document is put on hold. I would be happy to connect via Skype and walk you through how to do this. If you are just getting into building forms, this is a tool you need to have in your back pocket. You can send me an email if you are interested or if this is unclear.
Cheers,
Greg
Thank you for offering to help with this. I think I'm close on this one but just not getting the function to declare the document variable to work.
If you could post the .dlg file or send it to my email, I would be happy to take a look at it.