Escape Kit
  • Blog
  • Contact

Salesforce & HTML Email Templates & Editable Regions... oh my.

9/2/2014

11 Comments

 
So yeah, when creating a HTML email template in SFDC we only really have two options, Batman or Robin. 

Batman) Create a header template that looks snazzy and has an editable region below it... which is guarded closely by the worlds most unimaginative WYSIWYG editor.

Robin) Create a custom email template with no header that you are free to style as you please but has no editable regions. 

What we need is for Batman and Robin to work as a team. We want a snazzy HTML email template PoW! that has predefined styling throughout BaM! AND editable regions BooM! 

Huge and basically unsolved problem... 

Problem solved, and it's fairly easy. 

So to get away from WYSIWYG hell we are going to choose to Create a custom HTML template with no header. 

Once there, name your stuff or whatever and paste your super fancy HTML email template code. 

All you do now is add contenteditable="true" to the td areas you want to be editable, see example below. 
contenteditable=
Now each <td> tag you add that too will show up as an editable box for the user when they select that template to send an email. And the best part is, all the styling tied to each one stays intact so it looks Snazzy!


Robin: "Where'd you get a live fish, Batman?" 

Batman: "The true crimefighter always carries everything he needs in his utility belt, Robin."


11 Comments

    Archives

    September 2014
    August 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    November 2013
    April 2013
    March 2013
    February 2013
    January 2013

    RSS Feed