Foxy Forum Status

We're no longer responding to questions via our forum, but we will keep it up for historical reasons. If you can't find the answer you're looking for, please visit our knowledge base or contact us. If there's enough interest in the future, we may bring the forum back.

Pre-populating custom checkout fields

mjwallamjwalla Member
in General edited November 2010
Hi Foxycart, and brett,

Thanks for all your help last week. Things are looking good! :)

I have a question, is it at all possible to pre-populate a custom checkout field?

I have a donation form, and on the checkout page, I have a field called "Referred By." I would like to populate this field when the user hits the checkout page.

Any ideas?
  • Nevermind, got it! :)

    Easy enough, for anyone else look,
    you can just do <input type="hidden" name="h:Referred_By" value="" /> in your form... Where Referred_By is the field you need to access on your checkout page.

    Then on your check out page, just access the json object like any other javascript object.

    hope it helps
  • brettbrett FoxyCart Team
    Yup, exactly. Glad you got it going.
Sign In or Register to comment.