   custom_answers.push({ question: label, response: submission[key], type: type })
          delete submission[key]
        }
      }

      // removing empty string keys
      submission = Object.fromEntries(Object.entries(submission).filter(([k, v]) => k !== ''))

      frappe.call({
        method: 'fossunited.fossunited.forms.update_submission',
        args: {
          doctype: 'FOSS Event RSVP Submission',
          submission: '{{ frappe.form_dict.submission }}',
          fields: JSON.stringify(sub