Closed (fixed)
Project:
Webform Pay
Version:
6.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2010 at 11:51 UTC
Updated:
27 Jan 2011 at 09:30 UTC
Could you add the support for token values to the pay field. I am currently using alpha1 and notice that this is also not present in alpha2. I am using a session variable to populate the value and could do with it being implemented so upgrades will work.
Comments
Comment #1
quicksketchWhich fields are you trying to prepopulate? For the most part, I'd probably avoid prepopulating any credit card information, since that means you'd have to store it somewhere in your database, which probably isn't a good idea.
Comment #2
quicksketchComment #3
chrisivens commentedThe only field I'm interested in having the value pre-populate is the price field. It's a donation form where the value of the donation is set by a link on a previous page. I certainly don't want the credit card fields to be auto-filled.
Comment #4
quicksketchSee this handbook page: Working with Default Values.
Comment #5
chrisivens commentedSince there is no call to _webform_filter_values() the token replace does not work. That's what I added to the alpha1 version for my client to create the functionality they need. Ideally I want them to be able to upgrade without having to re-patch every time.
Comment #6
quicksketchI'm not sure what you mean by "Since there is no call to _webform_filter_values() the token replace does not work". Webform Pay let's you re-use any other textfield or select list in the form to serve as the total. Since these are just normal Webform fields, any token replacement should work fine on them. What patch are you applying to re-gain similar functionality?
Comment #7
chrisivens commentedAaah, that must be something new to post alpha1 version. I did scan through the code and not it was totalling up other field values. The alpha1 version just had the fields created for you so that's what I had to alter. If you can now use any other item I guess that's my solution. Sorry for badgering you like this. I haven't got a copy of the latest code running on the client's dev server.
I'll accept this as fixed and rebuild the form when I get time.