Click a button on one slide, display variable text on another
Jun 15, 2012
My mind maybe isn't working well yet this morning but I want to have a slide with 5 buttons that correspond to different business units. These buttons direct the user to the appropriate content for their group. This is I have set up and is working fine. What I want to do then is at the end create a completion certificate that can be printed and on that certificate I want to include the student's name (no problem doing that) as well as the businees unit selected earlier. I can't get my brain to figure out how to set a variable on each of the 5 buttons and then display the corresponding text onto the certificate slide.
I'm sure this will be a head slapper doh moment but can someone give me a hint?
7 Replies
The simple one is to have a single text variable, and on the button press you adjust the variable to be equal to your module title using a trigger.
On the certificate just insert a reference (%yourVariableName%) to your variable
Thanks Phil, Though I'm not sure I understand. I have my 5 buttons, Sales, Trading, Legal, Operations, and Other. The user clicks Sales and I want his certificate to say, "Tom Jones has completed the Sales training course." Of course if he clicks Trading I want it to say "Tom Jones has completed the Trading training course."
I already have several object triggers on each button. One sets the %RoleNumber% to a value between 1 and 5 which I use to serve up the correct slides (many of the slides are shared among the roles). A second trigger jumps to the next slide (which all roles have to view), and a third trigger just displays some mouse-over text giving more detail about each button.
Can you be more explicit in how I need to set up the trigger? I really appreciate your help.
Are you using the RoleNumber value for any calculations? If not, you might want to actually set the value to a string: "Sales", "Trading", "Legal", "Operations", "Other" and use that actual value %Role% to fill your completion value. You can still use these as conditions much the same way you would a numeric value.
If you want to abstract it a bit and keep your numbers. Add another variable (String) called RoleDescription. On your certificate page, setup a trigger to check the role number. Set Variable RoleDescription to "Sales" if RoleNumber is 1. You'd need as many triggers as you have roles that you want to set. Then you'd employ %StudentName% has completed the %RoleDescription% training course.
Hi Brett here is a quick demo of two options I would go with the textfield as I originally said (option 1 and as Steve suggests it gives more flexibility
Hi Phil. Worked a charm with option 1.
Glad you got it working sometimes easier to do a demo instead of telling you how to do it
So true. Was just missing one step. Had the Value set to "Variable" instead of "Value". Once I changed that the could enter the variable names for each role and we were off to the races.
Thanks again for your help.
This discussion is closed. You can start a new discussion or contact Articulate Support.