Definite: I know I need to call the functions of multiple buttons(VG1, ATB1,Term1, Prot1, etc.) when I click "Button2". (triggering the actions of these buttons, expands/collapses the document sections and subsections.. in a read more/less sort of way)
I created a script object "AllButtons" and wanted to create a script for the script object that would do what I needed it to do. (Is this possible?)
My thought was: when button 2 is clicked, AllButtons is executed, which, in turn "clicks" all of the other buttons(VG1, ATB1,Term1, Prot1, etc.)
You are correct, everything is on one subform. I've techinically combined about 6 different forms into one, and depending on the user selection of two dropdownfields, certain sections will unhide/activate.)
I'm hoping to add this 'master' button (button2) to make the doc more printer/user friendly. As it currently stands the user would have to click almost 30 buttons before printing so that data will be revealed. I want to allow the user to expand all relevant sections or all relevant sections and sub sections before printing.
if you have a subform with multiple instances and the buttons you want to call are in this subform, you can iterate through each of the subform within a loop and call the event wanted for each buttons..
to call the an event from another object within your PDF, you can call the function execEvent(), by specifying the event you want to call...