Hi, (excuse the lengthy post)
Testing the webform module to have users edit data on a site I have two questions using this module:
First: after a successful submit of the form it displays a link to return to the form 'Go back to the form', using this code (line 1192 etc.)
/**
* Themable function for webform submission confirmation
*/
function theme_webform_confirmation($node) {
$node->body = check_markup($node->confirmation, $node->format, FALSE);
$node->links[] = l(t('Go back to the form'), 'node/'.$node->nid);
return theme('node', $node, FALSE, TRUE);
}
On returning to the form the data is gone which is annoying if you have prepopulated the 'Default value' or the 'Description' through one of the available variables passed by the URL.
Example Description: Mybeautifuldescription is this: %get[mykey]
gives "Mybeautifuldescription is this:howbeautiful". On return this gives "Mybeautifuldescription is this:blanc"
Also, if the user only had to fill out the form once this doesnt make sense either.
Wat would it take to have it display an (could be additional) link to return the user to the page that called the form in the first place?
Second:The overview at www.example.com/?q=admin/webform lets me export the collected data to a csv file, works fine. My question is: is there an easy way to transfer the data to a content node? The reason being that the data from the webform should UPDATE the data in a node. Is it by design that the admin can't edit the data from the submitted form? (hey, thats a 3rd question)