Add addData method to form.