--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/58f91250-14f1-4dea-90d3-cb5a2015bf88n%40googlegroups.com.
Hi Valentina,
The script is fine. Your issue is that you have 2 onEdit functions in that spreadsheet. One in StartingDateDispute and one in ResponseDate.
Google will only run one of the 2. It usually takes the last one defined. So your function below is not being run.
Delete the second one and you should be fine.
To apply the same to another range, just add that functionality in the same onEdit function.
After your first if statement, add a second if statement for your second range.
--