ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Web Forms validations


#1

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?


#2

Check this


Python code against web form
#3

you can use the same validate function of doctype for your webform
and validation rules will be applied on both