Kurumi Posted February 25, 2019 Report Share Posted February 25, 2019 Just wanted to share how to copy the value from another field using web form/Submission Form. Thank you @DefinitelyNot31337 <script type="text/javascript"> var src = document.querySelector('[id*=InsertRecord]'); var dest = document.querySelector('[id*=InsertRecord]'); src.onchange = function() { dest.value = this.value; } </script> FinTheHuman 1 Quote Link to comment Share on other sites More sharing options...
DesiLogi Posted May 11, 2020 Report Share Posted May 11, 2020 Hi Meekee, This is an older post that I just found and I wanted to thank you for putting the code up, as I needed it. Works perfectly! Quote Link to comment Share on other sites More sharing options...
roattw Posted April 10, 2022 Report Share Posted April 10, 2022 Does "id" get replaced with [@Field:fieldname] ? Quote Link to comment Share on other sites More sharing options...
Volomeister Posted April 10, 2022 Report Share Posted April 10, 2022 Hi there! You would need to replace "InsertRecord" with the actual ID of the respective field. You can find the ID of any field in the source code of a webpage. For example, in the case below you will see that the ID of the "TotalPeople" field is "InsertRecordTotalPeople", so JS statement will look like this: document.querySelector('[id*=InsertRecordTotalPeople]'); Quote Link to comment Share on other sites More sharing options...
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.