What I want is simple:
a user fills in the form, and based upon whether he selected Male or Female (dropdown) they have to be assigned to a different group.
I read something the “cp_members_validate_members” hook, but I don’t understand how to apply/use hooks here…
thanks!
[Mod Edit: Moved to the extensions development forum as it is more appropriate]
If you are comfortable with PHP, just download some of the extensions available freely here and inspect how they work. This should hopefully give you some insight into how to build the extension you’re after.
It’s entirely possible to create an extension that will look at a member custom field and assign a different group to that member dependant on choice, I’ve built the exact extension to achieve it. Unfortunately it was paid work so I’m unable to just give you the code :(
Good luck!
Derek has a great write up in the Dev Blog entitled An Extension Autopsy from Dr. Jones which helped me understand extensions that you may find helpful when getting started. Hope this helps. -C
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.