Mike

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

  • Beginning Developers

    Beginning Developers

    This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking

Activity

  • Mike added a new discussion topic Adding forms on registration in the group Beginning Developers
    Hello! We've just inherited a (not very well documented) codebase. I've been asked us to add an additional registration form field, which will offer new users a yes/no radio button or checkbox selection. If the user chooses...
    • There's the Profile Manager plugin (https://elgg.org/plugins/385114) which could be used to add new profile fields (can be made mandatory at account registration). But I don't think you can make conditional profile fields (i.e. depending on the selection of one field there a different additional options displayed).

      The "Full age restriction checkbox" plugin (https://elgg.org/plugins/791444) is a simple plugin adding just a checkbox to the registration page. There's also no data saved (user input - or non-input - is just evaluated and either the registration proceeds or gets blocked). But maybe you could use this plugin as a starting point and just add the conditional input fields code and the data saving. Maybe the additonal profile fields could still be managed by the Profile Manager plugin (now without setting them to show on registration) as then it would automatically get them displayed on profile pages and they would be searchable.