Page 1 of 1

Nth Member Custom Field

Posted: 2025-08-29 19:53
by andrewlaw
Is there a way to add a 5th, 6th, etc Members custom field?

Re: Nth Member Custom Field

Posted: 2025-09-01 08:51
by saymaad
Yes, it's technically possible to add new custom fields by manually modifying the database structure. You can add additional columns directly to the membership_users table. However, this approach comes with maintainability overhead, e.g. if you're planning to use getMemberInfo() or rely on the default AppGini-generated admin pages, modifying the membership_users table directly is not recommended. The admin files do not offer hooks to support custom fields in this table, and any changes you make will be overwritten the next time you regenerate your application with AppGini.

Recommended Approach
Consider creating a separate table, e.g. user_extended, member_profile, or any name that suits your use case. You can then link this table to the built-in membership_users table via a memberID foreign key. This keeps your custom data separate from AppGini's system tables and ensures:
  • Your changes won't be overwritten during regeneration.
  • You maintain clean separation between system and your custom logic.
  • Your customization aligns with best practices for working with AppGini and keeps your app maintainable and upgrade-friendly.