Now what happens is that the old value of filename gets passed to the function even when I change it in the form after running. I kept the value attribute as blank. And then gave the value after running, that time blank value is passed. I wanted to know how to pass the new value entered by the user.
Please help
Or else If I write value=‘abc’ attribute then the same value gets retrieved even if user modifies that value in the textbox in the form.
Please help.
Thank you.
Sorry for the above reply. Didn’t realise you had replied.
Thanks a lot. getValues() method worked. Actually I had tried that method but used getValues(id) instead of getValues().id
Thanks a lot.
Now suppose the situation is like I have ‘id’ stored in a variable.
var userid=“id1”;
And then if I give
$$(‘form2’).getValues().userid;
it doesn’t work.
The problem is that, I have used the above statement in a for loop. And hence the id is dependent on the looping variable i.
So I used
var userid=“id”+i;
$$(‘form2’).getValues().userid;
That doesn’t work. I cannot put
$$(‘form2’).getValues().“id”+i;
It again doesn’t work.