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

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

You can probably use if else statements in the VF email template to show or hide. The below post might help
Thx a lot for quick answer, and I will look into that solution :)


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.