Student Name switch not working

thombeales
thombeales Community Member Posts: 41
I am trying to follow directions from an earlier thread but am having trouble.



I have this in the Metatag section of the page.(Custom Metadata option )



var temp = VarAICC_Student_Name.value; // get full student name from Lectora

temp = temp.split(', ').pop(); //remove anything before comma

VarFirstName.set('temp'); //set user variable FirstName to our result



I created a variable called FirstName

I have a text box _StudentName

I have an OnShow action to replace contents of _StudentName with FirstName

The text box is displaying Public (MyAgency), John



I want just John.