How can we add these to webForm

How can we add these to webForm

  1. Client script
  2. Filtering fields

image

ihave added it in the webform itself but it is not working

Refer,
https://frappeframework.com/docs/user/en/guides/portal-development/web-forms