JS to change color on template merge field text

edited November 2017 in Questions
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!

Comments

  • edited November 2017
    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?
Sign In or Register to comment.