Form Submission
Permalink
i have a client i just wrapped up dev for and i was able to avoid this for a while but now is the time i need to implement this changes.
1. ability to delete form submissions, reason being i built forms for registration for classes, after class is full form is taken down, and results are exported to excel, very nice BTW, now the trouble is i need to delete these results from site. There are 30-40 forms on site with around 30-40 users per form, so it is imperative i get this done.
2. A simple counter under "options" column will reviewing reports. For instance 1 class has 30 form submissions another 23 submissions, all viewable from reports overview. Would be a nice feature for sure.
I can implement or install code if someone can point me in right direction or if someone else needs these same functions i would be willing to help in anyway
1. ability to delete form submissions, reason being i built forms for registration for classes, after class is full form is taken down, and results are exported to excel, very nice BTW, now the trouble is i need to delete these results from site. There are 30-40 forms on site with around 30-40 users per form, so it is imperative i get this done.
2. A simple counter under "options" column will reviewing reports. For instance 1 class has 30 form submissions another 23 submissions, all viewable from reports overview. Would be a nice feature for sure.
I can implement or install code if someone can point me in right direction or if someone else needs these same functions i would be willing to help in anyway
would be great if we could have this added into the next update for c5.
brass – do you have a demo site or code? thanks!
brass – do you have a demo site or code? thanks!
as php is not my speciality but i am slowing learning it for this and other projects.
As far as i can get is to delete answers from database using PHP my admin, just matching the timestamps up and dropping it.
The counter is going to be more intensive as i can get a counter to display but it counts over all submissions and not the submissions for the individual forms.
I would share the code but it doesn't work so i don't want someone to mess up their install.
As far as i can get is to delete answers from database using PHP my admin, just matching the timestamps up and dropping it.
The counter is going to be more intensive as i can get a counter to display but it counts over all submissions and not the submissions for the individual forms.
I would share the code but it doesn't work so i don't want someone to mess up their install.
should be done in a couple days.
Making sure the buttons offer no change to core files. Testing on latest release of C5 and the previous release.
Counter is working flawlessly, deletes should be along soon.
Going to try to put it in marketplace as i have had some outside help with this code.
Making sure the buttons offer no change to core files. Testing on latest release of C5 and the previous release.
Counter is working flawlessly, deletes should be along soon.
Going to try to put it in marketplace as i have had some outside help with this code.
i am done, delete responses, delete form and all responses, and added counter. Testing currently. Attached a screenshot
Thanks!
Nice modifications. If these changes make it into the core - having a config constant do disable the "delete" button would be nice.
It's great to be able to remove form submissions for some projects but hiding data from the boss if the feedback wasn't that great isn't great (:
Nice modifications. If these changes make it into the core - having a config constant do disable the "delete" button would be nice.
It's great to be able to remove form submissions for some projects but hiding data from the boss if the feedback wasn't that great isn't great (:
all changes are made similar to custom blocks, just past respective files in folders. Just updated files with some sql statements and extra php.
I need some people to help me test it out too
I need some people to help me test it out too
I recently got a ticket to add some of these same mods to the core. Can you please attach your code for these changes to save me a bit of time?
i had a problem when deleting the forms, then trying to go back and delete the page the form was on. I commented the code out in my code, just easier to delete form from page, then delete the page if need. Just put files in root of concrete install, single pages and controllers folders so not to write over core files
Hope this helps
Hope this helps
These changes will be included in the next release of concrete, except I made it so that you can only delete a form if it's not installed on any active pages (per franz's request).
sounds good to me, that was only part that stumped me and i realized i didn't really need it so i just commented it out
so basically next update of c5 will have
1. delete individual form submissions?
2. form submission counter?
thanks for the great work!!!!
1. delete individual form submissions?
2. form submission counter?
thanks for the great work!!!!
it will be great if this code is included in the forthcoming update! Cheers!
i can post the code i have currently if anyone can help