Sending variables via url in a trigger?

Hello, is it possible to send variables via a url in a trigger? For example, if the trigger calls url:

https://myurl.com/CompleteCourse/SafetyForLife?userid="+rawID+"&office="+Office+"&field="+Field+"&drive="+Drive

Is there a way for Storyline to recognize it should send the value of the variable rawID etc?

Thank you.

6 Replies
Karessa Torgerson

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");