Hi, Hanif,
If this HTML is in the same CourseLab document (i.e. the same DOM) then you can use JAVASCRIPT action with usual DOM addressing, i.e.
var myFieldValue = document.getElementById('myFieldID').value;
g_arSlideVars['my_CL_var'] = myFieldValue;
After that you will have CourseLab varible named "my_CL_var" with value from field.
But why use this plain HTML? There is text field object in CourseLab and it saves value in variable automatically.
Hi, Hanif,
If this HTML is in the same CourseLab document (i.e. the same DOM) then you can use JAVASCRIPT action with usual DOM addressing, i.e.
var myFieldValue = document.getElementById('myFieldID').value;
g_arSlideVars['my_CL_var'] = myFieldValue;
After that you will have CourseLab varible named "my_CL_var" with value from field.
But why use this plain HTML? There is text field object in CourseLab and it saves value in variable automatically.