Hopefully someone in the community will be able to pop in and assist you. This is out of my scope, but I do know that we've had others in the community pass variables via JavaScript triggers. Check out this thread.
//Ask for the Articulate player var player1 = GetPlayer();
var urlID = player1.GetVar("rawID"); var urlOffice = player1.GetVar("Office"); var urlField = player1.GetVar("Field"); var urlDrive = player1.GetVar("Drive");
6 Replies
Hi Karessa!
Hopefully someone in the community will be able to pop in and assist you. This is out of my scope, but I do know that we've had others in the community pass variables via JavaScript triggers. Check out this thread.
Thank you, Leslie! I posted some progress and another question on passing variables via JavaScript triggers here: https://community.articulate.com/discussions/articulate-storyline/javascript-variables-in-storyline, in case anyone else is also struggling with this.
That link is not working for me Karessa. Is that the correct one? I do appreciate you sharing and contributing to the community though :)
Oh, I think I found it: https://community.articulate.com/discussions/articulate-storyline/javascript-variables-in-storyline
Same link, but the comma was tagging along in your post ;)
Breadcrumbs - this code works:
//Ask for the Articulate player
var player1 = GetPlayer();
var urlID = player1.GetVar("rawID");
var urlOffice = player1.GetVar("Office");
var urlField = player1.GetVar("Field");
var urlDrive = player1.GetVar("Drive");
var passURL = "https://yourURL.com/CompleteCourse/SafetyForLife?userid="+urlID+"&office="+urlOffice+"&field="+urlField+"&drive="+urlDrive;
window.open(passURL,"_blank");
Hi Karessa! Thanks again. Someone is going to run across this thread and be very thankful for you. I am, since I am no pro at this for sure.
This discussion is closed. You can start a new discussion or contact Articulate Support.