How can we add client script to web page

How can we add these to webpage

  1. Client script
  2. Filtering fields

There are two ways for creating client scripts:

  1. via doctype Client Script in doctype list, remember to enable your script

  2. 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.