Variable to equal a text box?
Apr 07, 2014
By
Matthew Ash
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?
Thanks
4 Replies
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.
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.
Much better to use a variable for version and then add a reference to a slide. You cannot do it the other way around.
Hi Matthew,
Phil has pointed you in the right direction - you can't read from a regular text box into a variable, it would need to be a text entry (where the user enters information) for you to be able to reference it later.
This discussion is closed. You can start a new discussion or contact Articulate Support.