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
    Member

    Hello,

    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
    Administrator

    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 http://www.gravityhelp.com/gravity-forms-1-7-new-notifications/

    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 http://www.gravityhelp.com/documentation/page/Gform_disable_notification

    Regards,
    Richard
    --
    Just another member of the community helping out where I can

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

    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
    Member

    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.

    http://pastebin.com/CqbvUseK

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

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

    Like this - http://pastebin.com/18ai51HG

    But when I do it for 2 forms like this - http://pastebin.com/CqbvUseK its not working all mails are disabled.

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