Skip to content

Instantly share code, notes, and snippets.

@mtetlow
Created June 4, 2014 21:31
Show Gist options
  • Save mtetlow/5c2fdec9ae7fd915cc5b to your computer and use it in GitHub Desktop.
Save mtetlow/5c2fdec9ae7fd915cc5b to your computer and use it in GitHub Desktop.
//HTML
var customLabels=JSON.parse('{!JSENCODE(customLabelJSON)}');
//Apex
public static String customLabelJSON{ get; set; }
...
Map<String,String> labelValueMap = new Map<String,String>();
labelValueMap.put('blmd_SideBarHeader_FollowUpProcessing',System.Label.blmd_SideBarHeader_FollowUpProcessing);
customLabelJSON=JSON.serialize(labelValueMap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment