JS to change color on template merge field text

  • 1
  • Question
  • Updated 3 years ago
  • (Edited)
Hi according to this post response from Skuid,


There might be a way to use the custom renderer to set the field.options.searchTemplate = '{{Name}} {{#Active_Off_Limits_Count__c}} — <font color="red">OFF LIMITS </font> — {{/Active_Off_Limits_Count__c}}';

But the style does not take effect. 

I only want to add the style in the fuzzy lookup results drop down.

Do you have an example? Thanks!
Photo of jili@heidrick.com


  • 2,042 Points 2k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,700 Points 4k badge 2x thumb

Can you please post an image of what the results of your search template look like and a mock up image of what it would ideally look like?