Master Posted June 2, 2015 Report Share Posted June 2, 2015 I am trying to copy the value of a text field to another text field on submission page upon clicking a button how can I do that? Quote Link to comment Share on other sites More sharing options...
0 MayMusic Posted June 2, 2015 Report Share Posted June 2, 2015 Add an HTML block to your page and click on source. use the code below: <input type="button" Value="Same as above" onclick="copy()"/> <script> function copy(){ document.getElementById('InsertRecordFIELD2NAME').value = document.getElementById('InsertRecordFIELD1NAME').value; } </script> FIELD1NAME is the one you want to copy to FIELD2NAME. Make sure to replace them with correct field names. Quote Link to comment Share on other sites More sharing options...
Question
Master
I am trying to copy the value of a text field to another text field on submission page upon clicking a button how can I do that?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.