I'm trying to make the HTML form for MCQ question via org-html-export-as-html.
#+BEGIN_EXPORT html
<form action="/save" method="POST">
#+END_EXPORT
1. What is your question
#+NAME: field-name
- [ ] option1
- [ ] option2
- [ ] option3
- [ ] option4
#+BEGIN_EXPORT html
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</form>
#+END_EXPORT
I have set the (setq org-html-checkbox-type 'html) which convert each option to <input type="checkbox"> but how to add name attribute currently I'm exporting option manually.
#+BEGIN_EXPORT html
<input requried type="checkbox" name="Q1" value="option1"/> option1 <br/>
<input requried type="checkbox" name="Q1" value="option2"/> option2 <br/>
<input requried type="checkbox" name="Q1" value="option3"/> option3 <br/>
<input requried type="checkbox" name="Q1" value="option4"/> option4 <br/>
#+END_EXPORT
hackish back-end in https://gist.github.com/rhoit/a213d4574a406f094b7d881db8510bcf