{"id":15727043,"date":"2022-06-10T15:50:30","date_gmt":"2022-06-10T15:50:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=15727043"},"modified":"2022-06-10T16:34:22","modified_gmt":"2022-06-10T16:34:22","slug":"conditional-notification","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/conditional-notification\/","title":{"rendered":"Conditional Notification"},"content":{"rendered":"<p>Dear Caldera People<\/p>\n<p>Great Plugin &#8211; thanks!<\/p>\n<p>I hava form displaying with a toogle button &#8220;simple\/booking&#8221;, which shows more fields for booking.<\/p>\n<p>I am doing this in the Notifications:<\/p>\n<pre><code>%freetext%\n\n&lt;strong&gt;Auftraggeber&lt;\/strong&gt;\n%name%\n%phone%\n%mail%\n%website%\n\n&lt;strong&gt;Event&lt;\/strong&gt;\n%line_up% @\u00a0%event_name%\n%location_name%, %adress%\n%website_location%\n%event_date%\n%showtime% Showtime\n%soundcheck% Soundcheck\n\n&lt;strong&gt;Soundsystem\/Mix&lt;\/strong&gt;\n%soundsystemmix%\n%mail__phone_audio_engineer_%<\/code><\/pre>\n<p>If just the simple form is filled, i would like to not generat the last two sections in the notification:<\/p>\n<p><strong>Event<\/strong><br \/>\n%line_up% @\u00a0%event_name%<br \/>\n%location_name%, %adress%<br \/>\n%website_location%<br \/>\n%event_date%<br \/>\n%showtime% Showtime<br \/>\n%soundcheck% Soundcheck<\/p>\n<p><strong>Soundsystem\/Mix<\/strong><br \/>\n%soundsystemmix%<br \/>\n%mail__phone_audio_engineer_%`<\/p>\n<p>Not filled fields are not displayed, but what about the plain text? Everything below &#8220;Events&#8221; should not be generated<\/p>\n<pre><code>Sampletext\n\n&lt;strong&gt;Auftraggeber&lt;\/strong&gt;\nMarcus\n+41799999999\ndaniel@chole.ch\nwww.marcus.com\n\n&lt;strong&gt;Event&lt;\/strong&gt;\n@ \n, \nShowtime\nSoundcheck\n\n&lt;strong&gt;Soundsystem\/Mix&lt;\/strong&gt;<\/code><\/pre>\n<p>Is there a way?<\/p>\n<p>Thanks!<br \/>\nCheers!<br \/>\nDan<\/p>\n","protected":false},"template":"","class_list":["post-15727043","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15727043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15727043\/revisions"}],"predecessor-version":[{"id":15727172,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15727043\/revisions\/15727172"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15727043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}