In Solution Explorer, under form variables "allvariables" is listed. When I right-click "allvariables" and select "Move sample" the following appears.
var varNames = allvariables;
application.output("This form has " + varNames.length + " variables defined.")
for (var i = 0; i < varNames.length; i++)
application.output(varNames[i]);
When I attempt to run the above method an error returns on the first line. What should I do to make this sample work?
I am hoping the above might help me with an issue that I am trying to resolve. I first use event.getElementName() to obtain the name of a button. Then I use a substring of that button's name to obtain a form variable name. No problem so far. Then I want to assign a value to the form variable that has that name. How do I convert the literal text of the variable name into the actual variable, so that I can assign a value to it?
Dean