Answered
Need help with fields in var
How do i put more fields in one variable?
I tried this but it's not working
var fields = ["Text1","Text2","Text3"];
fields.value = event.value;
How do i put more fields in one variable?
I tried this but it's not working
var fields = ["Text1","Text2","Text3"];
fields.value = event.value;
You need to use a loop, like this:
var fields = ["Text1","Text2","Text3"];
for (var i in fields) this.getField(fields[i]).value = event.value;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.