Hi Everyone,
Is it possible to add a custom validation whenever a user will click the save button of VendEditInvoice form? I have tried already to create event handler class on some part of the form, like the validateWrite() of the datasource but it doesn't satisfied some of the requirements. I really need to put it to Save.
Hope you someone can help me on this
Thanks in advance!
I'm afraid we want be able to design a solution that satisfies your requirements if you don't tell us what the requirements are.
As far as I know, all what the button does is saving the data source. If it's not what you want, maybe you need to re-think your design.
By the way, do you realize that there are other ways of saving the data besides clicking the button? For example, I can press Alt+S or close the form. If you put your logic on the button, it won't work in all cases.
Hi knives1991,
Agree with Martin, you should not put your code on the button.
What are your actual requirements? If you want to validate a field on the form, you could create try the validataField eventhandler on the table.
Hi Martin, Thank you for your input.
Understood your point and that make sense. I have found a workaround on this and changed some of the design.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 783
André Arnaud de Cal... 715 Super User 2025 Season 2
Sohaib Cheema 519 User Group Leader