Skip to content
Advertisement

Laravel 8 – Submit button not working with multiple forms

I’m trying to use a submit button that creates a registry (Memo) and it’s products asociated to that Memo, however, I cannot get this to work.

I think it might be because I have a form inside another form. However I believe since my submit button its outside the inner form, should still work (it worked before).

I’ll put my create.blade.php code below:

JavaScript

Advertisement

Answer

HTML does not support nested forms, so the browser turns them into one. Which is why your button is outside the form. Remove the nested form and everything will work.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement