How can I use webform field key called "name" to replace the word "anonymous" generated by the token [user-name] in the protected download email.
Therefore when a visitor receives the download link email it'll say, "Dear John," instead of "Dear Anonymous".
Hope someone can help out.
Comments
Comment #1
berliner commentedThis has not been possible up to now. But it is indeed a good idea. I just changed this in the dev version. You should be able to test this using the dev release once it get's updated.
The placeholder pattern is the same as with the webform mails. In your example you can insert
%value[name]into the mails body text. Given that you have a webform component with the machine name "name", the placeholder will get replaced by the data that the user has submitted.Comment #2
johnshih commentedThanks berliner,
I'll wait for the dev version.
Comment #3
berliner commentedit's already out: http://drupal.org/node/912774
Comment #4
johnshih commentedThanks berliner, btw when are you updating this dev version?
Comment #5
berliner commentedI have just released an rc2. The above mentioned changes are in there.
Comment #6
johnshih commentedThanks berliner, this new released fixed my problem.
Comment #7
johnshih commentedHi berliner, found a bug in this new release.
Secure download link doesn't work now.
However, it works if I change it back to the previous rc1 version.
Comment #8
berliner commentedCan you elaborate on that? I can't reproduce this with the information I have.
Comment #9
berliner commentedComment #10
johnshih commentedHi berliner,
When I use rc1 everything works except it doesn’t have the ability to use webform key name. Then I upgrade to rc2 ( I didn’t change any settings ) everything works except when I click on the secure download link in my email send by the ‘rc2’, it says 'Http500 Internal Server Error' in Internet explorer, a blank white screen in firefox and server error in Google chrome.
I also try the secure link that I used previously which was working fine in rc1, but it has the same error now. However when I change my module back to rc1, both secure links in my email send by rc1 or rc2 works fine.
The Access type I’m using is : Access expires
I also use Mime Mail for all messages.
Comment #11
berliner commentedWhat version of webform are you using?
Comment #12
johnshih commentedWebform 6.x-3.9
Comment #13
johnshih commentedHi berliner,
Thanks for your new release of 6.x-1.0-rc3. I can now insert the webform value (eg.%value[name])
without any problems.
note: I've update my webform protected downloads to 6.x-1.0-rc3 and private Upload to 6.x-1.0-rc3.
Comment #15
mardok commentedComment #16
berliner commentedFor D7 this issue should be obsolete. Documentation on the possible tokens is given in the description for the textfields.
@mardok: Please explain your changes to version, component and status of this issue if they are still relevant in your opinion.