Possible to set error message for field with preEdit/preCreate?
Possible to set error message for field with preEdit/preCreate?
Consider the following simple preEdit...
->on( 'preEdit', function ( $editor, &$values ) {
$editor
->field( 'test_field1' )
->setValue('123');
} );
...is it also be possible for me to set an error (or at least a message) that would display for that field, when setting the value?
This question has an accepted answers - jump to answer
Answers
Found it! I was looking in the wrong part of the manual. Something like this works like a charm:
Perfect - thanks for posting back.
Allan