How can we add these to webpage
- Client script
- Filtering fields
How can we add these to webpage
There are two ways for creating client scripts:
via doctype Client Script in doctype list, remember to enable your script
Create a js file in the doctype public folder, then alter the hooks file to execute your script
Hi @amal_31845
When you create a Web Page after logging in. You have the “Scripting” Tag in the Web Page form.
With this the scripts are also active for users viewing the Web Page without login. Client Scripts in this case when created in the GUI, only work for the Forms and List Views and not for public pages.
Sorry not for webpage web form
It is mentioned right here in the docs: https://frappeframework.com/docs/user/en/web-form/customization#client-script
You can use a client script on the webform.