How to prevent preCreate function from running if field validation fails?
How to prevent preCreate function from running if field validation fails?
When a new entry is create if the field validation is not satisfied, the preCreate
function still creates a gap for the new value.
It would get good to restrict it (preCreate) and only run it if the form validation successful.
Is this possible or am I doing something incorrectly?
This discussion has been closed.
Answers
preCreateis intentionally run before the validation so that you can potentially add validation methods inpreCreate.I don't quite understand why
preCreatewould create a gap (are you doing an INSERT inpreCreateand then UPDATEing that newly created row?Allan