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.