{{/* modal takes in one arg, "form", that is a SLICE of DICT: [ { form_id, form_title, and form_thankyou }, ... ] */}} {{ $form_id_array := slice }} {{ range $index, $form := .form }} {{ $form_id_array = $form_id_array | append $form.form_id }} {{ end }}