saving a new data record after onVlaidate

In a form app a new record should be written clicking on the new buitton . In the event onValidate some validity checks are done but at the end of it no explicit record writing is set.
Should the record be written automatically or do I need to specify an explicit db writing?

Hi. OnValidate is an event where you can add your own tests. This would be in PHP and SC macros. Your logic would stop the save.

Otherwise, the built-in validations run as well, like if in a field setting you told it was a required field, or integer, or other setting that SC just generates its own test code, which you do not see on the event.

By default, the OnValidate code box is empty.

And if you do not explicitly stop with your code, the form should just save the new record. Your action not required.

So I suggest u check that some setting isn’t being violated. Or if you are using version 9 it could be a bug or problem. 8.1 works normally as I just described it.

Good luck,
Jamie