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 :)

Type: Discussion
Status: New
Cahueya
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

You should do the following...

Open (copy) the controller.php in the blocks/formidable/. Go to line 149. Add the following code:
$this->set('total_submissions', $this->form['submissions']);


Now you can use "$total_submissions" variable in the view.php

Best,

Corretje
Cahueya replied on at Permalink Reply
Cahueya
Hello Corretje,

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 :)
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

It should be something like this:
<div class="totalnumber"><?php   print "Nr of submussions:".$total_submissions;?></div>

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.