This topic is locked

Email send wiht EDIT form

4/24/2007 11:37:00 AM
ASPRunnerPro General questions
S
swiersman author

On my EDIT page I have field called (Status). The filed starts out as <NULL>. When the user changes this value to "Approved", I need to have one person sent an email OR if they change the value to "Declined" I need an email sent to a different email.
How can I accomplish this?

J
Jane 4/25/2007

Hi,
you can do it using Before record updated event on the Events tab.

Use Send simple email action as a sample:

Function BeforeEdit(dict, where)

if dict("Status")="Approved" then

'send one email

...

end if
if dict("Status")="Declined" then

'send email to a different email

...

end if
BeforeEdit = True

End Function