Display Formidable Form Submissions
Permalink Browser Info Environment
Hello there,
I am in need of a PHP Guru :)
I am using the Formidable Add-On, which does a great job so far, but I need one more thing :)
I am using Formidable for a Survey and I would like to output the number of how often the survey was taken so far.
I found this thread which seems to be aiming at the same thing:
http://www.concrete5.org/community/forums/customizing_c5/how-to-sho...
But for the core form block. So naturally, all the database references are pointing somewhere else. I was not able to find the necessary spots in the Database at the Formidable entries, so that's why I am asking here. I already figured out that the relevant code is in view.php of the formidable dashboard page (td-class form_submissions), but I don't want to mess around with code snippets without actually knowing what I am doing. So ... has anybody done this or knows how it can be done? I am very sure there must be an easy way about it :)
I am in need of a PHP Guru :)
I am using the Formidable Add-On, which does a great job so far, but I need one more thing :)
I am using Formidable for a Survey and I would like to output the number of how often the survey was taken so far.
I found this thread which seems to be aiming at the same thing:
http://www.concrete5.org/community/forums/customizing_c5/how-to-sho...
But for the core form block. So naturally, all the database references are pointing somewhere else. I was not able to find the necessary spots in the Database at the Formidable entries, so that's why I am asking here. I already figured out that the relevant code is in view.php of the formidable dashboard page (td-class form_submissions), but I don't want to mess around with code snippets without actually knowing what I am doing. So ... has anybody done this or knows how it can be done? I am very sure there must be an easy way about it :)
Type: | Discussion |
---|---|
Status: | New |
Hello Corretje,
thanks a lot for you response, unfortunateley, i cannot get it to work like that. After changing controller.php, I've added
And it just outputs the string on the page. I've inserted it just above the submit button at the end. What am I missing?
Thank you for this great addon :)
thanks a lot for you response, unfortunateley, i cannot get it to work like that. After changing controller.php, I've added
<div class="totalnumber"><?php print "Nr of submussions:".$total_submissions->formID;?></div>
And it just outputs the string on the page. I've inserted it just above the submit button at the end. What am I missing?
Thank you for this great addon :)
Hi,
It should be something like this:
It should be something like this:
<div class="totalnumber"><?php print "Nr of submussions:".$total_submissions;?></div>
You should do the following...
Open (copy) the controller.php in the blocks/formidable/. Go to line 149. Add the following code:
Now you can use "$total_submissions" variable in the view.php
Best,
Corretje