Jump to content

Increment A Counter On Submission

Recommended Posts

Hello all,


I have figured out how to use the page view increment in a details page, but I wanted to update a counter on submission and don't see a similar element for selection.  Can this be done with a script?  I'm not much of a programmer, and had tried the following:


 function count()
   var i = parseFloat(document.getElementById("Count").value);
   document.getElementById("Count").value = i
Any help would be appreciated!
Link to comment
Share on other sites

Hello MrJason,


Welcome to Caspio forum!


A Details page displays the same record. So you can add a field to a table, and when the record is displayed, the value of the field is updated.

A Submission form creates a new record. Every time when a user clicks the "Submit" button, a new record is added. So the number of records is equal the number of submissions.


Does it works for you?


If you want to count how many times the webpage, where the Submission Form is deployed, is displayed you can deploy the second DataPage on the same webpage.

Link to comment
Share on other sites

  • 3 years later...

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.

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.

  • Create New...