With a public form I would like to allow the insertion of a request for work permit to our collaborators. However, I would like to prevent it if the request is not forwarded at least 24 hours before the starting time of the permit itself. Is there a way to check the request during insertion and possibly not allow it if the anticipated advance is not respected (with message)?
Thank you
Paolo
Hello Palo,
I guess, you want to load some rows from a table before save and setup model.isValid according to the data.
Please check these chapters in our help:
Load data
Model isValid
Toast or Alert
Regards
Michal