MarkMayhrai Posted May 10, 2023 Report Share Posted May 10, 2023 Hello, Need some code please: code to Auto Submit a single record update form when the dropdown value changes. Quote Link to comment Share on other sites More sharing options...
PotatoMato Posted May 11, 2023 Report Share Posted May 11, 2023 Hi @MarkMayhrai, you can check this forum post: -Potato Quote Link to comment Share on other sites More sharing options...
MarkMayhrai Posted May 12, 2023 Author Report Share Posted May 12, 2023 Hi @PotatoMato I continued to read the article you suggested, and with a little determination and experimenting was able to get it to work. As it was a Single Record Update Page, I had to use the words EditRecord in front of the field name in the JavaScript to make it work <script type="text/javascript"> document.getElementsByName('EditRecordLastSelectedCompanyID')[0].onchange = function() {myFunction()}; function myFunction() { // submit the form if an value is selected setTimeout('document.forms["caspioform"].submit()',1000); } </script> PotatoMato 1 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.