Jump to content

increment value and auto-submit update form


Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...