I am attempting to set a form variable using JavaScript. When the form loads there is an error in the developer tools console log that one of the variables is not defined.
NWF$(document).ready(function () {
NWF$('#' + varRequestorManager).click(function () {
NWF.FormFiller.SetValue("MyRequestorFormVariable","New Value");
var val = NWF.FormFiller.GetValue("MyRequestorFormVariable"); console.log("Form Variable Updated" + val);
});
});

