Forum Discussion
GrahamMcIntyre
26 days agoCommunity Member
Dynamic Hyperlink
Hi maybe someone can help:
I have a Articulate 360 course, where I pull the lmsStudent_ID from the LMS as a variable.
I need to create a dynamic hyperlink for the learner to click on, which must ...
Jonathan_Hill
26 days agoSuper Hero
Hi Graham. Yes, that's definitely possible. I used Javascript to create a personalised link to Google maps in this demo:
The code and set up are relatively simple, and I'd be happy to help. Assuming lmsStudent_ID is the name of the variable, I can whip up a quick demo for you and share it here.
Will return shortly.
Jonathan_Hill
26 days agoSuper Hero
How's this GrahamMcIntyre​ ?
The Javascript should be easy to tweak, but let me know if you have any problems.
var player = GetPlayer();
// Retrieve the LMS Student ID from Storyline variable
var lmsStudentID = player.GetVar("lmsStudent_ID");
// Create the URL using the student ID
var surveyURL = "https://mysurvey_" + lmsStudentID + ".com";
// Open a new browser window with the survey URL
window.open(surveyURL, "_blank");
Related Content
- 10 months ago