Support: add custom fields width: Am_CustomFieldRadio

Discussion in 'aMember Pro v.4' started by lee_pro, Apr 25, 2013.

  1. lee_pro

    lee_pro New Member

    Joined:
    Mar 26, 2013
    Messages:
    26
    I have field: Gender (Male, Female), set Male is default. I want add Gender field to form Sign Up.
    Please advice! Thanks
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can do this in aMember CP > Forms Editor -> Edit Signup Form
  3. lee_pro

    lee_pro New Member

    Joined:
    Mar 26, 2013
    Messages:
    26
    Hi Alex. I write in file site.php (amember\application\configs\site.php) with content:
    PHP:
    //Add field birthday:
    Am_Di::getInstance()->userTable->customFields()->add(new Am_CustomFieldDate('birthday'"Birthday",'Enter your birthday'));
    //I want add field : gender (male, female), set male is selected. I want use customFields Am_CustomFieldRadio. Please advice!
  4. lee_pro

    lee_pro New Member

    Joined:
    Mar 26, 2013
    Messages:
    26
    Can you help me: add custom fields with:
    Am_Di::getInstance()->userTable->customFields()->add(new Am_CustomFieldRadio ....

Share This Page