This topic is locked

Custom Inline Add and Edit Error occurred messages

3/12/2009 12:58:08 PM
PHPRunner General questions
M
MikeB941 author

PHPRUNNER 5.0 BUILD 766
In my Event validation routines for Inline Adds and Edits I've been using exit("My own error message"); to abort the record operation upon finding an error and customizing the message given on the Inline Error occurred>>
Is this the best method? Or should I be using return false; and setting some other variable to customize the Error occurred>> message?
Thanks a million! Take Care... Mike.

J
Jane 3/13/2009

Hi,
to edit message text use $message variable in theBefore record added/updated events:

$message = "some text here";

return false;