Fork me on GitHub

Hey all! I’m stuck on something that I’m sure has a simple solution somewhere out there: I want to package all the field data of a form and send them via a post. I’ve already written everything except for the part where I capture the data.


in JS, if I had an uncontrolled form, I would use something like form-serialize on the form submit:

import serializeForm from 'form-serialize';

<form onSubmit={(event) => handleSubmit(serializeForm(, {hash: true}))}>
...but I'm also new to CLJ so I don't know what the CLJS equivalent would be


I guess there's getFormDataMap on goog.dom.forms, but that returns a weird wrapper thing rather than an object:


Hmm. Thanks! I’ll look into that getFormDataMap