After updating my doctype where a field that is mandatory now was not filled before . Now when I try to edit the form the validation are triggerd for that mandatory field and not allowing me to edit the field.
Is Form is submittable , and you want to edit the form after submitting .
You can write your code on refresh instead of writing inside the validate function
Please share screenshot of your problem.