We want to use webform report to show users their own results, but not results of others. Adding the ability to filter by 'Current User' as an option to the 'User' key could have been an option, but this didn't make sense for our needs because we still want to sort by another column (date) and you can only filter and sort by the same key. So I added two new permissions: "access own webform results in reports" and "access all webform results in reports". Now, users with the first permission can only view their own results, and users with the 2nd permission can view all results. Proposed patch coming next :)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform_report_377468_view_own_results.patch | 3.93 KB | scottrigby |
Comments
Comment #1
scottrigbyActually this patch also contains the 'remove u' patch, and adds a destination to the 'edit' link (another feature that helps UI). I can roll a new patch with only the above changes if needed.
Comment #2
shaneoj commentedHello,
Thanks for this. This is what I've been looking for.
But how do I install this patch?
Comment #3
scottrigbyhi shaneoj, check here: http://drupal.org/patch/apply
This patch is simple, so if you run into trouble patching you could do it manually... go through the patch line by line, deleting every line that starts with a '-', and adding every line that starts with a '+' (just remember to remove the + sign once you add the lines).
Learning how to apply patches is a good idea though in general... and comes in handy with more complex patches that are difficult to apply manually :)
Comment #4
shaneoj commentedThanks!
By the way, does this also work for Drupal 5?
Comment #5
vako commentedGreat feature, thanks!
I want to propose another important option -> to enable a hide field from report.
e.g.: In my Webforms, people send their email & phone#, but these private fields should not show on the general report that everyone will see - the Results option, instead they should only be accessible by the site administrator or someone with permission of access hidden fields.
Comment #6
espirates commentedWhen I apply the patch I get this message, what does it mean ?
Comment #7
jimbullington commentedIf you don't mind, could you make a patch for the current CVS?
Comment #8
jimbullington commentedComment #9
zumph commentedIs there a way to do this for the 6.x-2.x-dev?