handle form data attribute to set resetForm and clearForm options