Add custom rule to custom input
Hey all, I have a custom input that is working perfectly, but I want to add a custom rule set.
Currently my working code is like this:
I want to add this rules set to my OrcidInput.php class, so i don't need to repeat the rule everytime i create another OrcidInput.
Current OrcidInput:
Solution:Jump to solution
Fix: ```
public function getValidationRules(): array
{
return ['required', new OrcidChecksum];
}...
1 Reply
Solution
Fix: