     window.location.href = '/{{event.route}}'
            }, 2000)
          }
        },
      })
    }

    function update_rsvp() {
      let formFields = document.querySelectorAll(
        '.form-control:not(.custom-question), [type="text-editor"]',
      )
      let submission = {}
      formFields.forEach((field) => {
        if (field.className.includes('ql-container')) {
          submission[field.id] = $(field).find('.ql-editor').html()
        } else if (field.type == 'checkbox') {
          subm