Am I supposed to write a separate application to be able to determine which submit button was clicked?
Javascript is a language that is best utilized when broken into functions and each function can in fact serve as an app that does one unit of job. Programming is all about solving problems of doing units of work.
Which of these 20 solutions is the correct one?
Correct answers are marked as correct with the green checkmark. Furthermore, other high quality answers have higher rankings which are displayed in the form of number of upvotes right beside the question.
These solutions have nothing to do with Meteor?
Meteor is not a dom event handler. It is a platform, or arguably a framework. It allows you to write otherwise verbose code in concise units. The template event handlers are very powerful in that regard. Meteor allows you to utilize any javascript solution to a unit of problem in a straightforward manner.
Info that I need is not part of Meteor event parameter?
No. It is not a limitation imposed by Meteor. It is how dom, events and javascript works. The proposed solutions are not very elegant, but they are not ugly hacks either.
If so why not?
Meteor is not a magic wand. But it is one of the six cool vendors pointed out by Gartner. Gartner is the most serious assessor of trends and technologies out there. You will be much happier if you appreciate what you already have and make full use of it. Regardless of the fact, your problem is irrelevant to Meteor and is already provided with a solution that is applicable to your meteor app.
These examples are in jQuery which I don’t know.
You should take a couple of hours of break from your work and read/watch a jquery tutorial. It is extremely easy to learn and very powerful. It will save you many hours of effort with dom handling.
Once inside event handler I also need access to all the form fields.
Meteor docs for event maps is very easy to follow and has some examples. Template.find is your friend. So is jquery.
Can I get info on generated HTTP request?
There is no HTTP request. Meteor does not work in a request/response manner. It is explained at the very beginning of the docs. Furthermore, you are already stopping any http request yourself by doing event.preventDefault()
which you should.
I also suggest you to refactor your code to not use multiple submit buttons and a single event handler. Your apps two different buttons do two distinct things so they should have two distinct events and associated handlers. They may share some common code (tasks) but that’s what javascript functions are all about.
I’ll also take my chances here and suggest you to be more involved with and appreciative of what you’ve got (meteor) and who you deal with (people who help you without waiting something in return). If you have actually read meteor docs and the link that sashko has shared with you, you would have solved your problem by now. But I sincerely hope that this answer puts you on the right track.