Rate this article

Choose to send email after updating a record

Rating: 5.0/5 (1 vote cast)

Sometimes you want to send an email only under certain circumstances after updating a record.

To do that follow the following procedure.

  1. Create your Custom Form or NeXTensio form as usual.
  2. Add a "Checkbox" next to the buttons at the bottom of the page using the following values:
     <input name="mail" type="checkbox" id="mail" value="1">
  3. Add your "Send Mail" behaviour
  4. Under the "Advanced Tab" select the transactions you want this email to be sent;
    Insert, Update or delete, Give it a high priority and of type "AFTER"
  5. Click each transaction in turn In the condition field and enter the following for every transaction type:
     {POST.mail} == "1"
  6. Click OK

When the user wants to send an email he / she then needs to tick the checkbox.
The script check if the value of the checkbox called "mail" is set to "1"

If it is set, the send mail SB will execute and the email will be sent.

If the value is not set, the email will not be sent.

Adobe

XMS Systems
ionCube Online PHP Encoder
Free PositiveSSL and WhoisGuard with Every Domain Purchase

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company