Change profile groups by dropdown custom field chosen at registration.
Thank you for such a wonderful contribution and such a supportive and informative community. This is the first time I’ve actually needed to use the forum to ask a question myself, haha.
Anyway, I am hung up on one thing. Seems so simple, but I can’t figure out what I’m doing wrong.
Upon registration, my new user will select a menu option from a dropdown menu generated with a custom profile field from built-in X-profile. I have done this.
Based on the selection made from this dropdown menu, I would like to display a particular profile group for the user to edit, and only load that particular profile group for that user. This is where I’m hung up.
It is simple to hardcode one visible profile in for the edit page. But to do it dynamically, based on the selection made is really tripping me up.
As an example:
People that choose “producer” from the dropdown menu at registration would only see “profile_group_id=2″ when they edit their profiles, which has relevant fields for them that are irrelevant to other users.
People that choose “musician” would only see “profile_group_id=3″ on the edit profile page. Does that make sense.
I fear that I’m just making it too complicated at this point. I’ve tried several approaches, this is my latest:
I’ve coded myself into oblivion at this point. And the above is a hail mary based on some stuff I’ve seen on these very awesome forums, but I’m not sure if I even know what kind of hooks I need to be getting here. Ugh.
I sincerely appreciate any guidance.
You must be logged in to reply to this topic.