[development] Custom Webform Module

Peter Droogmans Peter at attiks.com
Tue Jun 21 10:13:25 UTC 2011


You can use %get[campaign] as default value for a web component, so the easiest is to add a hidden component to store this, for the redirect you need a custom module with a hook-form-alter, see http://drupal.org/node/952342#comment-4134176

Best regards,
Peter Droogmans
Ketsstraat 94
2140 Borgerhout
32 3 288 61 17
32 497 44 44 77

-----Original Message-----
From: development-bounces at drupal.org [mailto:development-bounces at drupal.org] On Behalf Of Lynn Stott (Stott Design)
Sent: dinsdag 21 juni 2011 7:01 AM
To: development at drupal.org
Subject: [development] Custom Webform Module

I have a module that creates a web form for users to fill out. I'd like to track different campaign that access the same web form using a different URL so I can track hits and conversion rates for each URL. For example www.mywebsite.com/myform?campaign=june

How in the module can I capture the extension (after 'campaign=') and redirect the user to a unique confirmation page based on the extension?


More information about the development mailing list