I would like to display multiple variables in one text entry field. Right now I have each variable going to a separate text entry box on the second slide (see attached). Is there a way to display more than one variable in the same text entry field? Users can pick, 1, 2 all 3 + their own text entry on slide 1. I want whatever combination they choose to display on slide 2. Do I need a custom javascript?
Javascript would be the cleanest, assigning the combination to a dedicated variable. Displaying this dedicated variable in a text box would achieve your goal. I've found some great examples on getting and setting variables via javascript by searching these forums.
Are you certain that you want to use Text Entry as a display for the results of your answer? A textbox can be used instead and easily show the values selected from the previous slide without the use of javascript.
Just use
%Variable1% %Variable2% %Variable3% %TextEntry%
And it will display on the values on a single box.
If you want to go the Javascript route, here's a recent discussion that might get you to the right direction.
Sorry, I forgot to mention, in computer lingo, it's called, concatenate. Should make it easier to search for in case the resource I just shared with you is not enough.
8 Replies
Javascript would be the cleanest, assigning the combination to a dedicated variable. Displaying this dedicated variable in a text box would achieve your goal. I've found some great examples on getting and setting variables via javascript by searching these forums.
Great! Which forum post in particular? I didn't find this anywhere.
Hi Laurie,
Are you certain that you want to use Text Entry as a display for the results of your answer? A textbox can be used instead and easily show the values selected from the previous slide without the use of javascript.
Just use
%Variable1% %Variable2% %Variable3% %TextEntry%
And it will display on the values on a single box.
If you want to go the Javascript route, here's a recent discussion that might get you to the right direction.
Let me know how it goes.
Cheers,
Bang
Hi Again Laurie,
Sorry, I forgot to mention, in computer lingo, it's called, concatenate. Should make it easier to search for in case the resource I just shared with you is not enough.
Cheers!
Jin, You did it! I had no idea this could be so simple! Thank you so much! It works perfectly now.
Hi Laurie,
I'm glad to hear you got it working. Did you go the Text Box route or Javascript?
Let us know if you need anything else.
Cheers!
Totally text box! SO easy! Thank you again.
You're welcome! You know where to find us if you need anything else.
Cheers!
This discussion is closed. You can start a new discussion or contact Articulate Support.