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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Your form still has not cleared .....send it to Livecycle8@gmail.com and I will have a look right away.
Paul
Views
Replies
Total Likes