Adding forms on registration

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 "yes," we'd like them to select a value from a list or add a new one.

If the user chooses "no," we will ask them if they are interested in an offer (also a radio or checkbox Y/N).

And we would like to store all this info on the user object when they register, with the goal of making it searchable in the app.

Is there a plugin we can use to add these fields, or should we modify the actual Elgg views and register.php actions (preferably not this approach)? Any help would be appreciated! Thank you!

  • There's the Profile Manager plugin ( 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 ( 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.

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