Hi Guys,
I have a table with some Text populated.
I need to create a form which will highlight the cell when clicked and unhighlight when unclicked.
am having real trouble trying to get this to work.
I currently set the cells to Calculated read only text fields so that they can have click events.
I then used this code:
if(this.fillColor = "255, 255, 255")
{
this.fillColor = "255, 255, 0";
}
if(this.fillColor = "255, 255, 0")
{
this.fillColor = "255, 255, 255";
}
But I am not getting any luck.
Any help would be appreciated!
Solved! Go to Solution.
Views
Replies
Total Likes
In your if statement you need to use == instead of =. == tests a value while = assigns a value.
if (this.fillColor == "255, 255, 255") {
this.fillColor = "255, 255, 0";
}
else {
this.fillColor = "255, 255, 255";
}
Views
Replies
Total Likes
In your if statement you need to use == instead of =. == tests a value while = assigns a value.
if (this.fillColor == "255, 255, 255") {
this.fillColor = "255, 255, 0";
}
else {
this.fillColor = "255, 255, 255";
}
Views
Replies
Total Likes
Perfect! Thanks Jono!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies