I run a website that has "Email Campaigns" in which a pre-formatted email is posted on the website. Then users can enter their name and email address and the form goes to X amount of people - very like a simple version of Avaaz.org.
I'd like to be able to show users how many times the form has been submitted. It's easy to set this up in views, but the output for anonymous users is always 0 unless I give them permission to access results - which I obviously don't for data protection (and other) reasons.
Is it possible to have just this bit of information available, so my block says: "This form gets sent to 100 politicians. So far it has been sent 30 times, resulting in 3000 emails. Thanks."
(I have all of that working perfectly, just not for anonymous users (we don't have user accounts on the site.)
Comments
Comment #1
quicksketchI don't think Webform actually has any permissions checks in its Views Integration. You should be able to assemble this information in a view and Webform shouldn't care if your user is authenticated or anonymous. I'm not entirely sure how you'd do the math portion however (x politicians * y submissions = z emails).
Ultimately for this problem, I'd suggest just doing a raw SQL query in a custom block rather than building a view. It seems like that would be an easier/faster solution than attempting to build it through Views.
Sorry this issue wasn't answered promptly. Due to the age of this issue, I'm closing it directly.