Passing value of Variables
Hi Coders...
I am missing something and hoping one of you can point me in the right direction.
I am working on a form that will generated text boxes and have the following snip of code:
-----
var vLeft = this.getField("txbxLeft#").value;
var vRight = this.getField("txbxRight#").value;
var vBottom = this.getField("txbxBottom#").value;
var vTop = this.getField("txbxTop#").value;
app.alert(vLeft+" "+vRight+" "+vBottom+" "+vTop,3)
this.addField("Text1", "text", 0, [vLeft,vRight,vBottom,vTop]);
----
My objective is to have text fields on the form that have a number supplied by the user. That number will help determine the location of the text box on the page. The app.alert tells me that the value of the txbx has been captured, but the values are not being passed to the addField method.
What am I missing?
Kindly,
Robert