Create a button that will switch the font color of

2019-08-12 01:01发布

问题:

I am creating a google spreadsheet having two columns. Question and Answers. Let's consider there are 100 pairs of cells of questions and answers. All the questions have font color as black and answers have font color as white. If the current cell is pointing to one question then I want to create a button which upon clicking will change the font color to black and so the answer will be visible for its adjacent cell.

Is there any way to do this?

回答1:

you can do this without heavy scripting with just conditional formatting and simple checkboxes: