Hello,
We have a JS Token that we use in our Marketo emails. When the result is null we set the default text to direct users to contact our customer service team. However, we would like to change this so that the entire block of content disappears when the result is null. Can this be done?
Solved! Go to Solution.
A JS token in an email ? You mean a velocity token ?
It will not be possible to change the block presence, unless the block IS the token. In velocity, you can output all the html you need, so this should be possible. You will have to:
-Greg
A JS token in an email ? You mean a velocity token ?
It will not be possible to change the block presence, unless the block IS the token. In velocity, you can output all the html you need, so this should be possible. You will have to:
-Greg
Thank you, this is very helpful! Do you think this is something that someone with a passing experience with HTML could do, or would it be better to contract some hours with Marketo to do this?
Better have someone skilled in Velocity.
Marketo consultants is not the only source of skills, there some partners and freelances that can help you too.
-Greg
If you post your existing Velocity token it may be solvable here. Just make sure you use the Advanced Editor's syntax highlighter (highlight it as Java, since there's no Velocity option and Java is the closest) or it won't be readable:
Be warned that if the existing code is really bad (as in not following VTL best/reliable practices) then it won't be feasible to spot-fix. Hopefully, it's OK but is missing a simple condition.
And also please open a new thread since you already (appropriately!) marked Greg's response as the Correct one and he deserves to keep it.