Skip to main content
Nintex Community Menu Bar
Question

Help with field renderer -- checking for null lookup field

  • July 11, 2024
  • 1 reply
  • 0 views
  • Translate

Forum|alt.badge.img+8

I’ve built a custom field renderer. I want to render table rows as red when the field mode is read only and value2 is not equal to null. Value2 is a lookup field.

I’ve tried both of these:

if (field.mode == ‘readonly’ && value2 !== null)

if (field.mode == ‘readonly’ && value2 !== ‘’)

Currently, here’s my snippet – it’s showing all rows as red

var field = arguments[0];

var row = field.row;

var value2 = row.Termination__c;

var value = skuid.utils.decodeHTML(arguments[1]);

skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode;

if (field.mode == ‘readonly’ && value2 !== null)

{

field.item.element.addClass("UpdateForm_row-red");

}

Did this topic help you find an answer to your question?

1 reply

annajosephine
Nintex Employee
Forum|alt.badge.img+18
  • Nintex Employee
  • 867 replies
  • July 11, 2024
  • Hi Brayden

    What version of Skuid are you using?

Can you send as well the content of your "UpdateForm_row-red" class?

Starting in the Boston Release which will soon be available for early access, there will be many more declarative styling options in v2, which is really exciting.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings