PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Enable admin notification for only two forms

  1. bhargavy


    I'm using the "Gform disable admin notification" to disable admin notifications but I need admin notifications for 2 forms.

    How can I do this ???

    Posted 7 years ago on Friday April 26, 2013 | Permalink
  2. Richard Vav

    The gform_disable_admin_notification hook has been deprecated in version 1.7 because the concept of the admin notification and user notification has changed, you can now configure as many or as few notifications as you require and send them to whoever you like and the admin doesn't have to be one of the recipients.

    You should probably take a look at this blog post introducing the changes

    The gform_disable_admin_notification and gform_disable_user_notification filters have been replaced by the gform_disable_notification filter, more details about that here

    Just another member of the community helping out where I can

    Posted 7 years ago on Friday April 26, 2013 | Permalink
  3. David Peralty

    Yes, and so you'll want to test to see what the form ID number is and if it isn't the ones where you want to send notifications, then return True.

    Posted 7 years ago on Friday April 26, 2013 | Permalink
  4. bhargavy

    I think I got it, I made this code to disable all notifications if form id is not equal to 2 or 3, Can you please have a look at it.

    Posted 7 years ago on Saturday April 27, 2013 | Permalink
  5. bhargavy

    Hi when I test with disable for sendning mail for only one form its working fine...

    Like this -

    But when I do it for 2 forms like this - its not working all mails are disabled.

    Posted 7 years ago on Sunday April 28, 2013 | Permalink