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!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- iionly@iionly
iionly - 0 likes
You must log in to post replies.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.