Hi all,
I created a doctype and wrote some validations, it works fine .
But my issue is, I created web form with that doctype but validations not working on web form.
Please give me some solution, how to link client script to webform
Hi all,
I created a doctype and wrote some validations, it works fine .
But my issue is, I created web form with that doctype but validations not working on web form.
Please give me some solution, how to link client script to webform
Thank You, But I want to add client script file to web form is there any way
what do you mean by adding a client script file to web form?
I Created a doctype and I wrote client script also.
when I create a web form with same doctype, web form created but script validations not applying.
The main objective of the webform is to get data from the guest user through the form.
It is not a better-looking version of our desk form.
But still, if you need some customization you can add in the web form through the custom script but the doctypes custom script will not work.
Ok thank you.
how can i add validation to field at doctype when submitting the form?
You can add a validation script for fields in the web form which will trigger when you save the form.
Check the documentation here Customization
If you need to add a validation script at the doctype level then you have to add a client script.