Puzzling JS behaviour

Hello

I am trying to read the value of the AICC_Student_Name reserved variable into a JS script.

I am using moodle 3.0.3+

Lectora receives AICC_Student_Name from Moodle correctly as I can display it in a textbox.

However, the JS program seems to choke on the following line

var FullNameJS= VarAICC_Student_Name.getValue();

I have used similar function calls before.

I am just baffled. Any help gladly accepted.

Thanks

Andrew

undefined

Discussions have been disabled for this post