Description
Use this plugin to create a JavaScript variable for the user’s first and last name, which you can import into your Articulate Storyline project embedded on the page as an iframe or lightbox. If no name is detected, the variables will default to ‘Guest’, allowing you to perform validation routines inside your project.
User Guide
Step 1
Start by activating our plugin, as well as ensuring you are running the latest version of LearnDash LMS.
Step 2
A new metabox will become available on all edit pages for LearnDash lessons and topics, allowing you to select which specific pages you wish to include a JavaScript reference to the learner’s name on the page.

Step 3
Prepare your Storyline project by including the following JavaScript code to run before any other actions take place on the slide. You should also create two new text variables called ‘firstname’ and ‘lastname’ to store the name variables:

Step 4
It is recommended that you include some validation triggers within your project. By default, if no first name or last name is detected for the user, or if the user is a signed out and is viewing the course page as a guest, then by default the JS variables for ‘firstname’ and ‘lastname’ will default to ‘Guest‘.
Using this you can, for example, create a trigger which will prompt the learner to manually input their name if the ‘firstname’ of Guest is detected when the slide first loads.
Step 5
Publish the project to your LearnDash lesson or topic page either within an iframe or a lightbox window.
There are no reviews yet.