Displaying email modules based on the velocity script token applied in the email editor
Hi,
is it possible to somehow apply velocity script tokens around email modules within the email editor (not within/with the HTML code itself) in order to dynamically display modules from the email template?
I 've placed the below "opening" and "closing" tokens around the module in order to show/hide webinar speaker data:
Before the module:
#if($lead.formComments3.contains("Webinar A"))
#set( $webinarAHidden = false )
#else
#set( $webinarAHidden = true )
#end
After the module:
#if(!$webinarAHidden)
#end
Below is the visual of how I placed it in the editor. Any advice if this is possible and if yes, which tweaks to the script need to be made? At the moment the tokens do not work: