-
- 659 Posts
Hello
Why do you use a hook in this case, as I understand it, what you want is to display an error message if the field "myfield" is empty, am I right ? If yes you don’t need a hook to do this, but a custom validator...
Cheers
I simplified this form. In reallity this form is very complex. If you select an option some fields need to be checked. Otherwise they can be left alone.
However, this problem is ’solved’. My custom hook is only activated after all built-in validation is done. I didn’t realise that. It’s not completely what I want, but it will do for now.
Jeroen Kenters
MODX Professional | MODX Ambassador | Dutch MODX forums moderator
website |
twitter
-
- 659 Posts
Hello
I had a form like that if the checkbox X is checked you must fill in text fields #1 and #2, if one option is selected in an option list you have to fill in the text field #3etc,...
I did it only with custom validators... It works fine too... ;-) glad you had found a solution... The good side of Modx there’s always multiple ways to fit a goal...
Cheers