Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom field validation to create group


  • pratibhasvaksha
    Participant

    @pratibhasvaksha

    I’ve successfully created a custom field in the ‘create group form’. Everything is working great. The value is storing in the database and displaying the value in group listing page. I’ve taken the reference from this post: https://codex.buddypress.org/plugindev/how-to-edit-group-meta-tutorial/.
    Now, I wanted to add a validation rule to the created field. I’ve added a validation rule which is working fine by displaying the error message and redirecting to the same page after error generation. But because of the default behavior, group is still creating in the backend. That means the validation is just showing the message but not restricting it to create a group.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar