How to dispatch an Event?

How I could dispatch a custom event from ‘#input1’ in this function?

What i tried:

export function captcha1_verified() {

    const myEvent = new CustomEvent("myevent", {
        detail: {},
        bubbles: true,
        cancelable: true,
        composed: false,


You can’t dispatch custom events in Velo itself but if you’re trying to do this for event based state management you could use something like or