function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cldavecldave 

is it possible to have a Visualforce Email template with hide logic using jquery?

As title says i would like to know if possible to create a Vf email template in which i can hide fields conditionnally using Jquery or anything else?

Any advice would be appreciated


thx
Ramu_SFDCRamu_SFDC
You can probably use if else statements in the VF email template to show or hide. The below post might help
https://developer.salesforce.com/forums?id=906F0000000919OIAQ
cldavecldave
Thx a lot for quick answer, and I will look into that solution :)


AshwaniAshwani
cldave,

You should not use javascript in Visualforce page email template. It won't work when email goes in inbox. Instead use visualforce and apex controller binding to acheive this.