This will pass the value of your region and system variables back into a Storyline variable. I added a dash in between. You could take this out if it's not necessary, provided your variables are strings.
Does anyone know of a way to create a list in javascript that formats the text like ul and li. I have my javascript concatenating and building a bulleted list; but the bullet text is long and does not align with the first line of text.
- Example of what my text looks like (the dash in this example is a bullet point in my text).
- This is an example of what I'd like the text to look like on my page. This is an example of what I'd like the text to look like on my page.
7 Replies
Owen,
Check this out:
http://www.w3schools.com/jsref/jsref_concat_string.asp
yes - already visited there but could not get it to work :(
So if you wanted to draw out 2 variables and pass the combination of those back into Storyline, here's one way to do that:
var player=GetPlayer();
var _region=player.GetVar("Region");
var _system=player.GetVar("System");
player.SetVar("System_Region",_system+"-"+_region);
This will pass the value of your region and system variables back into a Storyline variable. I added a dash in between. You could take this out if it's not necessary, provided your variables are strings.
Thanks Steve - That did the trick.
If it says JavaScript, Steve's got it Glad he was able to help you out here Owen!
Does anyone know of a way to create a list in javascript that formats the text like ul and li. I have my javascript concatenating and building a bulleted list; but the bullet text is long and does not align with the first line of text.
- Example of what my text looks like (the dash in this example is a bullet point in my text).
- This is an example of what I'd like the text to look like on my page. This is an
example of what I'd like the text to look like on my page.
ok, my example is wrong - the second line of text should align with the first line of text
This discussion is closed. You can start a new discussion or contact Articulate Support.