Javascript listener for Webflow form

I’m trying to use the Webflow form block that passes information to a 3rd party signup management tool. I can’t seem to get it to work. Think I’m not putting the Javascript in the right place.

Here is what I need to add

Any advice for getting this right?