To use the Forms API, install the @wix/events package using npm or Yarn:
@wix/events
or
Then import { forms } from @wix/events:
{ forms }