PDA

View Full Version : Access query string from wtihin a widget/template?


AmazingRibs
07-15-2014, 12:07 PM
Hey guys, I want to prepopulate a custom field on the registration page with a variable I'm passing in query string. Something like /register?vcode=****** and I populate the input I created with the vcode value.

Currently I'm doing it through javascript but this is causing a lot of issues for some users with slow or old browsers. Any way for me to pull this data in my widget_register template and use as value="" on my custom input?

Lynne
07-15-2014, 05:19 PM
Is this custom field a user profile field? If so, just enter something for the Default Value.

AmazingRibs
07-15-2014, 09:41 PM
No, they purchase an activation code for a membership to all sorts of things including the forum. We direct them here to register the forum and want to have the activation code already filled in. I figured it out though.. kind of hacky, but it works well.