Resolve Form Button Conflict

Job ID: 40487237

Budget: $10 – $30 USD

I need a small but urgent front-end fix.
In my current page a standard submit button inside a form (“Guardar”) works as expected, yet the separate “Ficha Medica” button—meant to open another page through search_registros3()—also fires the form’s submit action. I only want that second button to navigate away, leaving whatever is typed in the form intact so users can return and finish later.

You’ll receive the relevant HTML/JS snippet; please adjust the markup or script so:

• Clicking “Guardar” still posts the form to subscribe3.php.
• Clicking “Ficha Medica” runs search_registros3() (or a simple window.location change) without triggering any submit event, and no data is lost.
• Behaviour is consistent across modern browsers, vanilla JS preferred (jQuery acceptable).

Deliverable: a corrected code block with a short note explaining what you changed so I can replicate the pattern elsewhere.