facebook

coping the content of textField1 to TextField 2 as a text

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #327274 Reply

    hoskaz
    Member

    if i entered a text in textfield1 and try to copy it in text field 2 what javascript shall i use ?
    say i want to write in the top textfield ‘Zoom’
    and i want the second textfield to display Zoom on it using Javascript

    Attachments:
    You must be logged in to view attached files.
    #327275 Reply

    hoskaz
    Member

    i want it to do that when i press the button

    #327277 Reply

    Kale
    Member

    Hi,

    Set the action for the button to “Run JavaSript” and type copy() to call the function copy()

    In yourAppName_custom.js insert:

    ​function copy() {
    $(‘#m1-yourAppName-textField2’).val($(‘#m1-yourAppName-textField1’).val());
    }​

    Didn´t test it, but should work.

    Greetings Kale

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: coping the content of textField1 to TextField 2 as a text

You must be logged in to post in the forum log in