Extending groups, required fields
I was able to create a plugin for extending fields in the group feature of BuddyPress with the Group API https://codex.buddypress.org/developer/group-extension-api/.
I would like to know how to make custom fields required. I do not want to rely on browser validation, given that it does not work on all devices.
I would like to validate the field on the server-side. For instance, in the first stage of group creation, both the name of the group and the description are required and you cannot successfully create a group without filling in those fields. I would like to do the same but in my custom screen, defined with the create_screen() function. Do you have any ideas about this?
- You must be logged in to reply to this topic.