I am trying to add validations to a web form. But my function is not called on validate. The code present in the corresponding py file (in the web_form folder) is as below,
def validate(self):
frappe.msgprint("Hello!")
What is the correct way to add server side scripts to a web form?