conditonal formatting based on different column value

Questionsconditonal formatting based on different column value
Ross asked 11 years ago

I'm wondering if there's a way of doing some conditional css formation (changing background colour) of a cell based upon a different cell's value.

ie:
$fcol = array();
$fcol["column"] = "dataA";
$fcol["op"] = "eq";
$fcol["value"] = "abcdef";
$fcol["cellcss"] = "'background-color':'#99EBC2'";

That works fine for $dataA's value. I'm looking to modify dataA background based if $dataB eq "abcdef".

I could create a virtual column which is populated with a true/false and compare on that, but it seems a little convoluted.

1 Answers
Abu Ghufran answered 11 years ago

You need to use advance conditional formatting code:

Sample: http://pastebin.com/PwHwdZKq

Your Answer

17 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?