theme color for enable-condition-met fields

  • 1
  • Question
  • Updated 2 years ago
I have added enable conditions to some fields in a field editor.  When the condition is met the field is enabled as expected but the item label color goes black.  Fields that don't have enable conditions have  item labels colored blue from the theme that is set for the page.  Adding CSS to the field editor and to the fields themselves does not  work, the enabled field style overrides it. How can I retain the theme color for enable-condition-met fields?
Photo of Tyler Fisher

Tyler Fisher

  • 388 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Tyler Fisher

Tyler Fisher

  • 388 Points 250 badge 2x thumb
I've tried adding a custom field renderer java snippet:
var $ = skuid.$,    field = arguments[0],
    value = arguments[1];
    {
field.element.css({'color':'#003767'});
    
skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value);


which effects the field value, how can I specify the field label?