Before you proceed, you will have to activate the Advanced Script from the settings panel.
Once activated, you will find the Additional Script accordion added under the Panels section.
You will fine separate boxes where you can add scripts for actions like:
- Popup Open
- Popup Close
- Popup Submit