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.

How to select "All" for Conditional Shortcodes

  1. I have used the conditional short code and I included MORE THAN 1 conditional feature...and I am wondering if the message can only be sent out if ALL of them are selected. I tested it out -- and it seems as though the message is sent when ANY of them are selected.

    Is there a way I can use the option ALL?

    Like this...

    Send this notification if ALL of the following match:

    Here is what I pasted:

    [gravityforms action="conditional" merge_tag="{Points::37}" condition="is" value="56"][gravityforms action="conditional" merge_tag="{Do you have a partner / spouse?:17}" condition="is" value="Yes"][gravityforms action="conditional" merge_tag="{French Ability::32}" condition="is" value="No"][gravityforms action="conditional" merge_tag="{Speaking::30}" condition="is" value="Advanced"][gravityforms action="conditional" merge_tag="{Listening::34}" condition="is" value="Advanced"]

    Hello {Name::4},

    You have Qualified to Immigrate to Canada, on condition that you have at least 1/16 for French.

    {all_fields}

    [/gravityforms]

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  2. Is there a way?

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  3. David Peralty

    Are you using the latest Gravity Forms version? You can set up conditional logic for notifications that would help you do the ALL. Conditional short codes only do any.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  4. Yeah that is my question...

    So it's not possible to have conditional shortcodes to be as ALL?

    Damn.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  5. David Peralty

    Nope, they are just for single changes. You said you were using scores though, I figured you could do them based on score number. I guess you'll need to use Conditional Logic and different notifications more than conditional shortcodes unfortunately.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  6. Which goes back to my original question...

    Is having many many notification emails -- not beneficial?

    The other admin Carl said it wasn't a good idea...

    Thank you David!

    Daniel

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  7. David Peralty

    It isn't a good idea for management of them, and if more than a few are triggered at any one time (it looks like you'll only end up potentially triggering one per submission), then they can get marked as spam. Beyond that, you should be fine, and aren't effecting Gravity Forms in a negative way.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  8. What do you mean triggering more than one? (More than one notification email?)

    All of the notification emails are selected as "ALL". Meaning that it is very specific and conditional.

    There are only a few notifications that have "ANY" selected.

    Daniel

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  9. Only the ones that are less than 48 points receive the ALL notification emails.

    All of them above 49 points receive notification emails with ANY.

    Daniel

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  10. David Peralty

    The issue is when you have one form submitted but multiple e-mail notifications sent. So if a user submits their details and you send out a dozen e-mails, then your server might quickly get marked for spam because this would scale quickly to spam like levels - 100 people submitting details = 1200 e-mails. That's where the real issue lies and potentially where Carl was worried for you.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  11. Well that's the thing... only ONE would be sent.

    So is there any other alternative -- or just creating conditional notifications for each specific situation -- the only way?

    Thank you!

    Daniel

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  12. David Peralty

    Between Conditional Shortcodes and Conditional Notifications, the only other option is to PHP program them, and that's not really ideal either (no interface to manage things if you want to change them easily).

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  13. How do I PHP program them?

    Thanks!

    Daniel

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  14. David Peralty

    Here is our documentation for our Notification hook - http://www.gravityhelp.com/documentation/page/Gform_notification

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  15. David,

    Thank you for the link!

    What exactly should I be looking for and what is a notification hook?

    Thanks!

    Daniel

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  16. David Peralty

    Hooks and filters are how you programmatically interact with Gravity Forms. You would put your custom code in your theme's functions.php file. Read through our documentation for more information, but I recommend this only being taken on by an intermediate or above PHP developer.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  17. Before I look into the notification hooks... are you sure that I am not able to send the notification message when ALL of the inputs are selected? (for Conditional Shortcodes)

    Because if so - I might be able to do it like that...

    Thanks!

    Daniel

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  18. You see how you guys gave us the example with shortcodes:

    [gravityforms action="conditional" merge_tag="{Number:1}" condition="greater_than" value="10"]
    2
    This content would be displayed if the value of field id 1 is greater than 10.
    3
    [/gravityforms]

    That is just ONE conditional action. Am I able to have more than ONE conditional action and send the notification email only when ALL of the actions are chosen by the user?

    Daniel

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  19. David Peralty

    As I've said, no you can't. Each condition is managed as they happen. There is no ALL for conditions like these.

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink
  20. Alright thanks.

    What exactly will notification hooks do for my form?

    Daniel

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink
  21. ... in terms of automating it.

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink
  22. David Peralty

    You would have to be an intermediate PHP developer or above to be able to take advantage of doing this.

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink