Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Interesting question. It won’t be simple.

    Where I would probably start with that is to create a hidden field that serves as a flag to send the notification or not.

    Then, create a custom template for the record shortcode that adds the extra button. Using Javascript, add a handler to this extra button that sets the “send notification” flag (by putting a value into the hidden field), then triggers the “click” of the regular submit button.

    In your theme functions file, create a callback for the ‘pdb-after_submit_update’ hook that checks the flag value. If the “don’t send” state is found, it sets the Participants_Db::$plugin_options[‘send_record_update_notify_email’] to 0, thus canceling the notification. This is assuming you have those notifications enabled.

    If this isn’t something you can do yourself, you should contact me by email about creating some custom code for you.

Viewing 1 replies (of 1 total)
  • The topic ‘Additional button to [pdb_record]’ is closed to new replies.