This module allows you to convert any WebForm component field to the URL Alias of where the webform was submitted from.

Sandbox Location: Webform Submitted From URL Alias

So, if you submit a WebForm from http://yoursite.com/foo/bar (which is really http://yoursite.com/node/42), you could convert a hidden field's value to "http://yoursite.com/foo/bar."

This conversion runs in the presave function, allowing the URL alias to be saved before anything is saved to the database, and before any email confirmations are sent.

The only method of doing something like this is to create a custom module. I realized this after a lot of research into the (now defunct) "Additional Processing" module that previously was recommended for use with WebForm.

Comments

ccardea’s picture

Status: Needs review » Needs work

I just took an initial look at the project to get the ball rolling on this, and noticed the following issues:

  1. Licensing - you will need to provide a LICENSE.txt file GNU GPL v2, which you can find here.
  2. Module duplication. This module is closely tied to the Webform module and my initial reaction is that the community might be better served by having this included as an additional feature in that module. Have you discussed this with the maintainers of Webform? Does this module solve issues that have been raised there?
lslinnet’s picture

license files are added automatically when the module package is created.

ccardea’s picture

OK then, that's not an issue. Thanks for telling me.

ccardea’s picture

Assigned: Unassigned » ccardea
tim.plunkett’s picture

Component: new project application » module
Status: Needs work » Closed (won't fix)

Closing, feel free to re-open if this was a mistake.

avpaderno’s picture

Assigned: ccardea » Unassigned
Issue summary: View changes
Issue tags: -url, -path, -webform, -alias