Expand my Community achievements bar.

One script to make multiple cells call one function or vice versa

Avatar

Level 3

Please help.

I need one script to make multiple cells reference one function or one cell reference multiple functions.

Goal: On the enter event of cell c1, I want to make cells (this, Header.c1, Example.c1, rLabel) highlighted, and this would be for every other cell that is entered into, their corresponding column header and row header will be highlighted.

I've tried combining cells: eg

colourControls.hdfieldLoseFocus(this, HeaderRow.c1, Example.c1, rLabel);

and I've also tried combining some scripts in the function:

fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";

  HeaderRow.fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";

  ExampleRow.fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";

But they dont work. See the link to my form.

http://www.winstonanddavid.com/example.com

I tried testing the function with the cell 'c1' but it doesnt work.

Also, I want to get rid of the multiple lines of script in every other cell.

How can I do this?

0 Replies