Ba2sai Posted November 28, 2016 Report Share Posted November 28, 2016 Hi Caspians, Does anyone know of a javascript I can use in my Submission Form text field, so I can force the content to be submitted as lowercase in my database table? Quote Link to comment Share on other sites More sharing options...
nightowl Posted November 28, 2016 Report Share Posted November 28, 2016 Hi Ba2sai, Please try adding a Header and Footer section inside your submission DataPage. Then put this JavaScript code inside your Footer (with Source view enabled): <script type="text/javascript"> document.getElementById("caspioform").onsubmit = function () { var str = document.getElementById("InsertRecordEmail").value; var res = str.toLowerCase(); document.getElementById("InsertRecordEmail").value = res; }; </script> Quote Link to comment Share on other sites More sharing options...
MayMusic Posted December 6, 2016 Report Share Posted December 6, 2016 Here is the link to online help for this method: http://www.w3schools.com/jsref/jsref_tolowercase.asp Quote Link to comment Share on other sites More sharing options...
JolliBeng Posted August 13, 2019 Report Share Posted August 13, 2019 Hi, You can also follow the steps on this post: Then, change the code to the following: text-transform: uppercase; ~JolliBeng 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.