Pre-Save Helper Error Not Shown to User

0

I'm trying to use a pre-save helper to validate inputs. Assigning the following pre-save helper - simplified for debugging purposes - prevents the record from being saved, but the user sees a success message - not the error as needed.

Shouldn't this work?

<?php 
die('Error: This is an Error.');
?>

asked Jul 14 '10 at 10:51

jackson

33

add comment
enter at least 15 characters

1 Answer

0

The documentation needs to be updated. You need to include <e>

<?php die('<e> This is an Error.'); ?>

answered Jul 15 '10 at 10:15

jackson

33

add comment
enter at least 15 characters