Coding Multiple Submit Buttons in a Javacript Form

Closed - This job posting has been filled and work has been completed.
Web, Mobile & Software Dev Web Development Posted 2 years ago


Hours to be determined
Less than 1 week

Intermediate Level

Start Date

August 5, 2014


I have a simple java form in which a user puts in their hospital Medicare number, then a PDF file downloads. The PDF is named the same as the Medicare number.  Here's what it looks like:

But now we want to add another submit button that downloads another file. The user would still put in their Medicare number (same as current form), but instead of downloading a PDF, they'd download an Excel file (which is named the same as the Medicare number).

Here's what the new page should like like:

I tried to play with the code (I'm not a programmer, obviously), but no matter what I did, it only downloaded either the PDF or .xlsx file...not both.  Or it didn't download anything.

I'm thinking this would be quick and easy for a programmer. I'd like someone to just provide the code and I'll test it on my end.

About the Client

(5.00) 1 review

United States
New River 03:44 AM

1 Job Posted
100% Hire Rate, 1 Open Job

$35 Total Spent
1 Hire, 0 Active

Member Since Aug 5, 2014