Submitting Text Input with Style-Elements

I am trying to have a text input that on change will update the model (this works great) and on submit update the view (this escapes me). I am confused by the Element.Events documentation for onSubmit. Can someone point me to an example of this function in use?

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.

Thanks. I had actually figured out a way to do it with onClick.

1 Like