Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Can I prevent a BizForm from saving in the OnBeforeSave Event? View modes: 
User avatar
Member
Member
john-wakefly - 8/18/2009 9:40:02 AM
   
Can I prevent a BizForm from saving in the OnBeforeSave Event?
Mainly I would like to check some additional conditions. If the conditions are not met, I want to prevent the save and show an error message where the normal BizForm errors are shown. Is this possible?

Thanks in advance!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/19/2009 5:41:03 AM
   
RE:Can I prevent a BizForm from saving in the OnBeforeSave Event?
Hi,

you need to set the StopProcessing property to true, then you can check your conditions, set the error message as you need to. If the conditions are met, you can set the property to false again and continue. I hope it makes sense.

Best Regards,
Juraj Ondrus