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

Web Forms validations


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):

What is the correct way to add server side scripts to a web form?


Check this

Python code against web form

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