i want to prevent the user from saving a Web-form if he has Entered an invalid Entry
When i use the command
frappe.msgprint(" some message",raise_exception = True)
The document is not saved: Good
An Error message is popped up: Good
The web console shows Error: Bad
Did i miss something?
Is this Normal ?
This is a snapshot of my code
class DOCTYPENAME(Document): def validate(self): self.checksomething() def checksomething(self): if certain_condtition: frappe.msgprint("Some message", raise_Exception=True)