No validation message returned
-
Hi,
I added a validated text field to my custom field group, with basic PHP validation as below:
<?php if(strlen($value) < 10) { $message = "Test alert"; return false; } else { return true; }
I then entered less than ten characters in the field on the post page and clicked ‘publish’ to test this, expecting my error message to pop up, but it did not do so. In fact WordPress would not even save my changes, it just hangs and doesn’t actually reload the page.
Please can anyone shed some light as to what the issue may be?
Cheers.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘No validation message returned’ is closed to new replies.