This topic is locked
[SOLVED]

 Edit Record Confirmation Page to send email

3/22/2012 7:21:26 AM
ASPRunnerPro General questions
D
decsite71 author

sorry my bad english

I would like to know if there is a way to enter the edit page to ask the user whether to send an email to the amendment of a record.

I'm trying version 6 in the new version of PHPRunner or AspRunner you will be able to do?

Sergey Kornilov admin 3/22/2012

Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.
We'll see how we can help you.

D
decsite71 author 3/27/2012



Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.
We'll see how we can help you.



The solution is this:

to ask this confirmation to add the JavaScript onLoad event The following code:
this.on ('BeforeSave', function (formObj, fieldControlsArr, pageObj) {

if (confirm ('send an email?'))

formObj.baseParams ['sent'] = 1;

});

Then put your email sending code to the After event records updated.

Here is a sample:
if (postvalue ('sent')) {

/ / here is your code for sending email

}
Thanks Alexandra for your fast response