ission[field.id] = field.checked
        } else {
          submission[field.id] = field.value
        }
      })

      let custom_answers = []
      // for each value in submission, if the key has custom_question in it, then add it to custom answers as {question: field.data('label'), response: value}
      for (const key in submission) {
        if (key.includes('custom_question')) {
          const label = $(`[name="${key}"]`).data('label')
          const type = $(`[name="${key}"]`).data('type')
       