Require admin to fill user address

Discussion in 'Templates customization' started by bfritton, Jan 29, 2013.

  1. bfritton

    bfritton Certified aMember Developer

    Joined:
    Oct 26, 2009
    Messages:
    54
    Hello all,
    I know how to make the entry of an address required on signup by a customer but I need to make sure that when an admin adds a user, that they must enter the address information that is sort of hidden in the collapsed address information header below the other fields.

    Any one know:
    1) How to default that collapsed section to being open and
    2) How to require admins to enter address information to add the user?

    Thank you very much!
  2. bfritton

    bfritton Certified aMember Developer

    Joined:
    Oct 26, 2009
    Messages:
    54
    Also, how do you make custom fields required for the admin as well, it seems even though the field is set to required, it still is not in the admin Add User form!
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    I'm afraid there is no easy way to do this.
    You have to edit /amember/application/controllers/AdminUsersController.php and add required rules manually
    Check function insertAddressFields and insertAdditionalFields

Share This Page