This topic is locked
[SOLVED]

 Send Email from popup confirmation

1/21/2016 8:02:49 AM
PHPRunner General questions
C
chrism author

Been looking through the forums, haven't seen an answer to this question yet.
So I'd like to, on an Edit page, when the save button is clicked, to spawn a popup which asks if you'd like to send an email. IF they click yes, the record is saved and then the email is sent. If they click no, the record is saved and no email is sent.
The meat of my problem lies in passing a variable from the Javascript onload to After record updated, a boolean which will read true if yes is clicked, false if no is clicked. I think this might be able to be accomplished through some ajax requests, but I haven't found anything in the documentation.
Thank you for your help!

Sergey Kornilov admin 1/21/2016

Check this article for inspiration:

https://xlinesoft.com/phprunner/docs/add_custom_field_to_form.htm
You can extend beforeSave event adding confirm() function call asking for user input:

https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm

C
chrism author 1/21/2016



Check this article for inspiration:

https://xlinesoft.com/phprunner/docs/add_custom_field_to_form.htm
You can extend beforeSave event adding confirm() function call asking for user input:

https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm


The custom field is what I was looking for. Thank you Sergey!!