I have literally hundreds of notifications (say 15 forms with 30 different notifications for each form entry), and it is extremely exhausting to open every notification if I just want to make a small change.
Hence, I decided to create shortcodes with the notification content, (by using the plugin Code Snippets (pro version)), so that I only need to change the content in one place.
(This could, of course, be done in the functions.php as well, I just find it easier to work with all the code snippets separated…)
This works rather well actually, with GF Conditional shortcodes and everything, but there is one thing I can’t figure out how to solve, and that is Merge tags.
Like this:
[/gravityforms] [gravityforms action="conditional" merge_tag="{Name(Firstname):1.3}" condition="isnot" value=""] This field is not the same as {OtherName:2}.[/gravityforms]
The code above would only output
This field is not the same as .
(The merge tag “{OtherName:2}” is not kicking in.)
I think I need to use php here (probably gform_notification and something with the Entry Object), but this is quite abow my head.
I hoped a simple <?php $something = (rgar( $entry, '3' )); echo $something; ?>
would do, but that, of course, doesn’t work at all.
Can you please export your snippet and post that file somewhere, then share the link here? I’d like to see what filter you are using for this, along with the complete code. Thank you.