Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
455 views
in Q2A Core by
The registration is important part for an admin . Admin wants the data should be in correct form and all fields .

How can I apply validations ?

1. User fill fields atleast 3 length.
Q2A version: 1.8.3
by
edited by
+3
To validate default registration fields like username, email is easy. https://github.com/q2a/question2answer/blob/dev/qa-include/plugins/qa-filter-basic.php          is the in-built plugin that governs validation jobs. You will create a new FILTER plugin and replicate the needed functions in that qa-filter-basic.php file.

Something like  if (strlen($handle) < 4) return "Usernames must contain more than 3 characters.";

I haven't tried with custom reg fields like Fullname, Location... In theory, it should work if you know the variable names.
by
+1
This should probably be an answer.

Please log in or register to answer this question.

...