I was kind of hoping that if a user pushed the <ENTER> key while filling out a MailForm form that it would submit the form, just as though they had pushed the Send button. It doesn't appear to do so, but that's not the real issue.
Instead, what happens is it reloads the page, losing what the person had entered. That information gets added to the URL in the address bar, so something happened, but it does not get submitted.
I'm concerned that the fact that the form gets wiped out is going to make some people think it got submitted when it didn't.
(If you hit the Send button, everything works as expected. It's only if you press the <ENTER> key to try to submit it, which I think people commonly do these days, especially tech-savvy people, which are the kind of people who use my wiki to begin with.)
Ed Johnson pointed out to me that it looks like this only happens when there is one field in the form. When I added a second field, it did seem to work (in the sense that the <ENTER> key did nothing, instead of removing their data and not submitting). That is, perhaps, a tolerable workaround for the time being, but I honestly only need them to enter the one field, and I know that from a UX standpoint, to get the best results, you shouldn't add more fields than necessary. I'd rather get it fixed instead of working around it.
Here's the code that I'm using:
[[module MailForm title="Signup" button="Sign Me Up!" successPage="sign-up-thank-you"]] # email * title: Email: * type: text * rules: * match: /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$/ [[/module]]