Hi There
I have a Notification where i Placed fields placed:
{Name:103}
{Flights:125}
{More1:179}
{More2:180}
{Transfers:183}
Now lets say the TAG {More2:180} is not filled in on the forms my Notification will read:
Jacques
Emirates Airlines
Day Tour
Airport Transfers
I need my Notification to read:
Jacques
Emirates Airlines
Day Tour
Airport Transfers
How to I take out {More2:180} in my Notifications?
chrishajer
(Chris (Gravity Forms))
July 20, 2023, 5:32pm
2
You can use conditional shortcodes around those merge tags, so they are only output when they contain a value. See the documentation here:
The conditional shortcode allows you to perform conditional logic in the message content of your Admin and User Notification emails as well as the Confirmation Message that is displayed when a form is submitted.
Est. reading time: 2 minutes
Let us know if you have any questions setting that up.
Chris (Gravity Forms):
conditional shortcodes
I’ve checked but its not working.
My Notification is setup as:
[gravityforms action=“conditional” merge_tag=“{More 1:128}” condition=“isnot” value=“”]{More 1:128}
[/gravityforms]
[gravityforms action=“conditional” merge_tag=“{More 2:130}” condition=“isnot” value=“”]{More 2:130}
[/gravityforms]
[gravityforms action=“conditional” merge_tag=“{More 3:131}” condition=“isnot” value=“”]{More 3:131}[/gravityforms]
When I fill in all the fields
More 1 = Flights
More 2 = Transfers
More 3 = Tour
my Notification says:
Flights
Transfers
Tour
When I fill in all the fields
More 1 = Flights
More 2 =
More 3 = Tour
my Notification says:
Flights
Tour
I need to know how do I Remove the LINE from Flight and Tour?
My Notification must read:
Flights
Tour
chrishajer
(Chris (Gravity Forms))
July 21, 2023, 11:03pm
4
You can check the box “Disable auto-formatting” and the line breaks will not be converted to HTML br and p tags. Then you have to add all your own HTML markup, because WordPress won’t do any of it.
You may have to experiment a bit to ensure you have the line breaks where you want them still.
system
(system)
Closed
August 20, 2023, 11:03pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.