I am attempting to add a button to a VFE form that when pressed would insert a template for the users to follow and complete within another box on the same form. It is a social history template and we are moving away from the GE CCC version of the social history, but the users did like the template insertion.
I am not sure how to get this to work and wondered if anyone could suggest something?
Thanks in advance!!
What I'm imaging you would do to get similar functionality to the CCC form would involve two forms.
Form 1: Has the button that calls the subform for additional detail. You can use add_from_comp() to call the subform. Form 1 also has an edit field for the obs where you want the data stored.
Subform: This is the form that is opened. You can pull data together and concatenate together and push into whatever obs term you defined on form 1. You just need to decide is you want the new value to overwrite any existing data or add to the end. You can also put in a button to go back to form 1.
This doesn't have any code, because that would vary depending on what you want to do on the subform regarding data entry, but logistically makes sense to me. Hope this helps.
Brad