Here is one way you could do it using the id’s of the textfields:
var data = $('[id$=textField1]').val(); //get data from first textfield
$('[id$=textField2]').val(data); //place data in second textfield
This is how you can do it by explicitly defining by the fields on the screens:
var data = $('#m1-<screen_name>-textField1').val(); //get data from first textfield
$('#m1-<screen_name>-textField2').val(data); //place data in second textfield
You would place this code in the Run Javascript box of the On Click event for the button. I uploaded the file showing the example.
Attachments:
You must be
logged in to view attached files.