In this article we will describe how to create a submission counter and displaying it in the "Thank you page".
Create a new hidden field, name it "counter";
In the Default value, paste the following code (please remember to copy everything, including the //<code> tags!):
//<code> $db = JFactory::getDbo(); $db->setQuery("SELECT COUNT(`SubmissionId`) FROM #__rsform_submissions WHERE FormId='".(int) $formId."'"); return $db->loadResult()+1; //</code>
Note: To display the result please edit your "Thank you message" and add the following:
You are submitter number: {counter:value}






