Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

table cell fill color change depending on dropdown selection

Avatar

Level 2

Hi all,

I am trying to have a table cell change its fill color depending on the selection in the associated dropdown.  Within the table header row, some of the cells are dropdowns.  Those dropdowns are the ones I would like to define the fill colors of the cells below.  Here is what I have:

if

(form1.Main_Subform.Table1.HeaderRow.Other1.rawValue == N/A) {

this.border.fill.color.value

="220,220,220";

else

this.border.fill.color.value="0,0,0";

}

I have it in the change event.  Does anyone have any suggestions?  Should I have it in another event?  Am I using incorrect syntax?  I have the JS Debugger Console activated and am getting no error messages.  HELP?  Thx in advance.  -rpeterson

0 Replies

Avatar

Level 10

Not sure I follow ....an example woudl be useful.

Are you trying to chnage the color of the dropdown? of the cell? of the entire row?

Paul

Avatar

Level 2

Paul,

I am trying to change the fill color of the cell.  I have attached the doc.  Thanks for getting back to me so quickly.

-rpeterson

Avatar

Level 10

Waiting for yor form to be cleared .....just noticed in your code sample that yor are comparing the dropdown value to N/A. I assume N/A is a selection in the dropdown. If so it is a string and needs to be in quotes so it should look like this:

(form1.Main_Subform.Table1.HeaderRow.Other1.rawValue == "N/A")

If that does not work I will have a look when the form clears.

Paul

Avatar

Level 2

Paul,

I have tried it with double quotes, single quotes, and no quotes.  Nothing helps.  Sorry.  I have also reviewed the other posts on this same subject all to no avail.

-rpeterson

Avatar

Level 10

Your form still has not cleared .....send it to Livecycle8@gmail.com and I will have a look right away.

Paul