Populate custom fields?

Discussion in 'Customization & add-ons' started by joshuwae, Sep 7, 2010.

  1. joshuwae

    joshuwae New Member

    Joined:
    Nov 16, 2006
    Messages:
    9
    I'm almost sure I've seen this before - but can't find the answer tonight.

    I need to populate form fields for custom fields 'hphone' and 'altphone'. I can populate everything else in the signup form from the URL.

    e.g.

    ../amember/signup.php?country=US&price_group=-673848&name_f=joe&name_l=blow

    Thanks! I'm sure the right person can answer this in seconds flat. :eek:
  2. joshuwae

    joshuwae New Member

    Joined:
    Nov 16, 2006
    Messages:
    9
    I should say that &hphone=8005551212 or &altphone=800-555-1212 do not populate the field correctly.
  3. mikecgi

    mikecgi Moderator

    Joined:
    Sep 7, 2010
    Messages:
    9
    You might wanna copy the code for those fields into the signup page manually and then change their value="" to

    Code:
    value="{$smarty.request.hphone|escape}"
    and

    Code:
    value="{$smarty.request.altphone|escape}"
    so that they get populated when you pass those variables via the URL itself...

Share This Page