Multiple Forms on Single Liveview

Hi,

A quick question - is it possible to have multiple forms on a single page in a LiveView? I have two forms but only the first one will submit using phx_submit.

Both are in containers with different id's and both forms have different id's. I can’t find anything in the documentation … am I missing something?

If this should work I will post some code.

Thanks,

Andrew

I havent tested but assume it should work. How and where are you posting the other form?

1 Like

It was PEBKAC … I am using AlpineJS and had missed a div and messed up the scope.

Andrew

1 Like