Forum Discussion
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 contain the lmsStudent_ID at the end the URL, and this will then take the learner to a custom survey tool , but I need help on how to create this dynamic hyperlink ?
I am looking for something like the below:
https://mysurvey_"the LMSStudent"ID .com
The start of the link will be static and does not change, but I need to append the Student_ID at the end of the URL ?
Has anyone done this before?
Thanks
Graham
2 Replies
- Jonathan_HillSuper 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_HillSuper 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