I'm posting information from a form to google sheets.
After the insert (which adds the last row), I want to do some apps script post processing. Before I do the post processing I want to fill in a couple of blank cells which are not submitted by the form, including the OFFEREXPIRATIONDATE column which should be set at :
=TODAY()+7
I've been reading https://www.benlcollins.com/formula-examples/array-formulas-forms/ , but I'm not sure if you can apply Arrayformulas to add new formulas into cells.
I tried putting the following in cell J2:
=ARRAYFORMULA({"TODAY + 7";J3:INDEX(J:J,IF(ISBLANK(I3),"",TODAY()+7))})
with the idea of checking if the row to the left is blank, and if not inserting the TODAY()+7 formula in, but this is giving a circular dependancy error.
How can I get this working?