Watusi Posted June 13, 2019 Report Share Posted June 13, 2019 In my submission form, I wanted the value entered in one of my text fields to be automatically copied in my password and confirm password field. Does anyone have ideas about this? Thanks! Quote Link to comment Share on other sites More sharing options...
AtayBalunbalunan Posted June 13, 2019 Report Share Posted June 13, 2019 You may try the code below in your DataPage's footer. Please disable first the HTML editor. <script> var username = document.getElementById("InsertRecordUsername"); username.addEventListener("keyup", myFunction, true); function myFunction() { document.getElementById("InsertRecordPassword").value = document.getElementById("InsertRecordUsername").value; document.getElementById("InsertRecordPassword@Confirm").value = document.getElementById("InsertRecordUsername").value; } </script> Just change the ID attribute value based on your field names. Please refer to this guide for referencing Caspio Form Elements: https://forums.caspio.com/topic/4377-js-guide-caspio-form-elements/ Watusi 1 Quote Link to comment Share on other sites More sharing options...
Watusi Posted June 13, 2019 Author Report Share Posted June 13, 2019 Thank you, AtayBalunbalunan. It works! 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.