Hello,
The current view your previous submissions page, seems to show the forms each Drupal account submitted sorted by their sid (submission id). However that doesn't seem very intuitive for the user to tell the different forms apart. So I'd like to ask if there is a way to modify webform so it returns a user configurable field (eg. nickname or description) of each webform? So maybe I would be able to modify webform-results-submissions.tpl.php so that it would make a DB call to find the sid and echo the cid of the field from the webform_submitted_data table in the "view my submissions" page?
Or perhaps I'm going about this the wrong way, any help would be appreciated.
Comments
Comments
Comment #1
quicksketchI'm confused about this request. If you want to add another field to your Webform (such as "nickname" or whatever), you can already do that through CCK. the webform-results-submissions.tpl.php already has access to the $node object, so you could print out the contents of that field in that template and hide it elsewhere.
Comment #2
amenhotep commentedHi Quickstretch,
I should have mentioned that I'm new to Drupal and php, so it's quite possible I'm not using the terms correctly. Basically I would like to add to each of entry's in the webform table on the "view my previous submissions" page the user supplied data in one of the fields (text boxes) they filled out on that particular form. So it would look like below.
I picked up a Drupal coding book so I'm going to work on learning how to do this, just wondering if someone could nudge me in the right direction. You mentioned printing out perhaps a CCK view through php code in webform-results-submissions.tpl.php. I'll look into how I do that.
If I can't figure it out I'll hit you up privately and see if we can work a price for your services, the webform module is great and has helped a newbie like me get as far as I have without knowing much of the guts at all.
Comment #3
quicksketchThe "My submissions" page currently only shows you one node's submissions at a time. Though if you're wanting to build a page that contains all of a user's submissions from all nodes, you can do that by using the Views module and building a listing of type "Webform submissions".
Comment #4
amenhotep commentedI have downloaded the Views module, but the permissions on webform ended up being enough to give me most of what I need. My site will allow users to create an account which will provide them with one form/node to fill out and save multiple times. They will be the only ones to be able to see their forms and will need to login and modify the different forms over time. For example, inventory forms for different small business stores, so I'd like them to be able to tell which store the form is for in the view my submissions, by allowing the user to input a description for the form. Hopefully that makes sense.
Comment #5
brighteridea commentedI'm also looking for an answer on this
Comment #6
danchadwick commentedThere won't be further feature development in the X.x-3.x branches.