record form recording function