Clear color code in 18 rows

DKinsley

11-09-2020

I have a table with 18 rows. Each row has a text filed that is shaded a color based on the selection from a drop down field. I want to be able to click a button and return all of the shaded fields back to white (not shaded).

 

This is the script under the change event of the drop down:

Signal.border.fill.color.value = "255, 255, 255";//white

 

My table rows are labeled

Row[0]

Row[1]

Row[2]

Row[3]

etc. to 18

 

Is there a script to include all and return all border.fill.color.value = "255, 255, 255";//white ?

Accepted Solutions (1)

Accepted Solutions (1)

radzmar

MVP

13-09-2020

There's a script for almost everything, it's only has to be developed 😉

For your task, it might be a simple loop.

 

var oRows = Table.resolveNodes("Row[*]"),
    i;

for (i = 0; i < oRows.length; i += 1) {
    oRows.item(i).SIgnal.border.fill.color.value = "255,255,255";
}

 

Answers (0)