This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

edit_entry and notifications


  1. epsd
    Member

    Currently when a form is edited via the admin control panel (and edit_entry.php) upon success, the database is updated. Works fine. However, I'd like for the form to be re-submitted to the notification list upon successful editing. Where should I look to attempt this?

    Posted 16 years ago #
  2. yuniar

    Are you sure you would like to do that? It will send email for every changes.
    If so, you need to edit your includes/post-functions.php file.

    That file contains two similar function, process_form() and process_form_update().
    When a form data is being edited, process_form_update() is being called. So you will need to modify this function.

    Copy this code (taken from process_form()):

    require('lib/class.phpmailer.php');
    require('includes/helper-functions.php');
    
    send_notification($form_id,$table_data);

    then go to line 1732, paste the code there.
    That should do the trick.

    Let me know if it doesn't work for you.


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Reply