JS to change color on template merge field text

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

https://community.skuid.com/skuid/topics/is-there-a-way-to-change-color-on-template-merge-field-text

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}}';
skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value);

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

jili@heidrick.com

  • 2,032 Points 2k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Jili,

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?