How can I manage multiple newsletter forms success control?

Hi, everyone.

I added 2 newsletter forms with different form ids and tags.

I came up with this result: when I submit one form the other one says submitted too visually.

I think the problem with this is,

{%- if form.posted_successfully? -%}
the if statement checks only the URL value ?customer_posted=true

How can I add the form.id or section id to the success URL parameter? Or could I solve this issue with another approach?