Forum Discussion

samirc23's avatar
samirc23
Contributor
12 years ago

How to capture value from edit box?

I want to enter “xxxxx” into username filed and capture entered value from username filed and enter it into some other field. I used text method to capture value from edit box as below but getting error message ‘Object doesn't support this property or method’,.

Please let me know how to capture edit box value and enter it into other field.

 

function test()

{

var A, B;

 A = "xxxxx"

Aliases….username.SetText(A);

B = Aliases….username.Text();

Aliases….otherfield.SetText(B);

}



Many Thanks,

Sam

4 Replies

  • Are you sure .Text is a method (with braces) and not a property (without braces)?
  • Hi Nick,



    Thank you very much for your reply and yes its  a property (without braces). Its sorted now:)
  • reddycn's avatar
    reddycn
    New Contributor
    How to capture a value in a textbox so that I can use the extracted value into a different text filed as an input value.