Variable to equal a text box?

Apr 07, 2014

It may too early on a Monday for my brain to process correctly, but I can't work out a way to make a variable equal an existing text box in a module...???

I have a text box on the first slide that shows the version number, e.g. 'V1.8'.  I intend to update this on each publish & export to a database via javascript for admin version control (the text box is off-slide, so is hidden from view)

I have a created a text based variable called 'version' which I want to equal the text box containing version number when it is updated.

Does anyone have any suggestions how this could be achieved without manually updating the variable or showing the version number on-scren?


4 Replies
Ashley Terwilliger-Pollard

Hi Matthew,

I may not be understanding the set up with the Javascript and exporting to a database, but if you have a variable - and you've set up the triggers to adjust the variable based on what's entered into the textbox, you should be able to reference the variable on another slide with the %Variable% set up described here. 

If I'm having a case of the Mondays, and missing something related to the Javascript and database elements I hope that it's something the community will be able to assist you with. 

Matthew Ash

Hi Ashley,

Thanks for replying. Poor attempt at describing the problem on my part- the javascript & database information is actually not relevant to the issue. What I'm trying to achieve is this:

Text box on slide, already filled in as "v1.8"

I have created a variable called "version"

I would like "version" variable to = what is in the text box ("v.18")

So if I change the version number in the text box, it automatically updates the "version" variable.

This discussion is closed. You can start a new discussion or contact Articulate Support.