Created
May 18, 2012 19:42
-
-
Save brunosan/2727260 to your computer and use it in GitHub Desktop.
Update Info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function updateInfo(row,reply,column,fieldanswer) { | |
| var current= sheet.getRange(row.id+2, column).getValue(); | |
| var updated= (fieldanswer || current); | |
| if (current != updated) { | |
| // update field | |
| sheet.getRange(row.id+2, column).setValue(updated); | |
| sheet.getRange(row.id+2, column).setBackgroundColor('green'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment