Ishan Chinthak1
Tera Expert

Not sure if you have already figured this out, but once you click the Close Task button it sets the Status field to Closed Complete (state=3) on the form so have the Status field displayed on the form so user can change it to something else and and save again. if not you can set it to a different sate in the script and save.