Mylene Posted January 25, 2017 Report Share Posted January 25, 2017 Hi Everyone, I'm looking for a way to combine calculation and auto-submit script. I need to increment value in one field (integer datatype) and auto-submit update form. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Mathilda Posted January 25, 2017 Report Share Posted January 25, 2017 Just now, Mylene said: Hi Everyone, I'm looking for a way to combine calculation and auto-submit script. I need to increment value in one field (integer datatype) and auto-submit update form. Thanks in advance! Hi Mylene, try using my script. You need to insert script in an html block and put that block below the fields on a form. <script type="text/javascript"> x=parseFloat(document.getElementById("EditRecordField_name").value); y=x+1; document.getElementById("EditRecordField_name").value = y; if(document.getElementById("caspioform")) { document.getElementById("caspioform").style.display = 'none'; setTimeout('document.forms["caspioform"].submit()',1000); } </script> Add your field name instead of Field_name in the script. Cheers! 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.