Jason Posted July 2, 2015 Report Share Posted July 2, 2015 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: <SCRIPT LANGUAGE="JavaScript"> function count() { var i = parseFloat(document.getElementById("Count").value); i=i+1; document.getElementById("Count").value = i } document.getElementById("Countsubmission").onsubmit=calculate; </SCRIPT> Any help would be appreciated! Quote Link to comment Share on other sites More sharing options...
Jan Posted July 9, 2015 Report Share Posted July 9, 2015 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. Quote Link to comment Share on other sites More sharing options...
Kurumi Posted December 4, 2018 Report Share Posted December 4, 2018 Hi @Jason I think this article might help you when it comes to the counter on your Submission Form: https://howto.caspio.com/tech-tips-and-articles/advanced-customizations/how-to-limit-the-number-of-submissions/ I hope it helps! 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.