The difference between onInput
and onSubmit
is that the first expects to be passed a msg that has a String like InputMyName String
and onSubmit
just does not pass any argument around, so it would accept a msg like SendForm
.
To help you better, it would be useful if you could share some code.
I suspect that what you really are looking for is onClick
on a button at the end of your form.