This topic is locked

Display message in Custom Add event

9/13/2017 10:10:07 AM
ASPRunner.NET General questions
Pete K author

I'm using the Custom Add event of an add page and trying to dynamically change the "Record was added" message after doing some processing. There is conflicting and incomplete information on how to access this, and I can't seem to get it to work.
In the "Description" area of the Custom add event, it states among the parameters:

keyserror - place the message to be displayed into this variable.


This generates a runtime error; I assume it's a mistake. I do see that the dynamic variable that is actually defined in the CustomAdd function is called "error", so I tried that, but it didn't seem to change the message. The help topic also refers to "error".

jadachDevClub member 9/13/2017

Put

message = "Your new message";



on the before record added event.

Pete K author 9/13/2017



Put

message = "Your new message";



on the before record added event.


That doesn't work in the Custom add event, but it does work in the Before record added event and that's what I would up using.
Thanks Jerry.