The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

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?
Comments
  • 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.