Closed daveykropf closed 4 years ago
Note to self: this problem is caused by the fact that client-side forms uses global state to determine the form id. This ensures that multiple forms on the same page never use the same id's.
However if multiple forms are rendered in isolation the rendered forms use the same count.
The only way to solve this problem is to allow the form id to be set from the outside. This way, the PHP code that knows multiple forms are rendered on the same page can assign unique ids.
It is now possible to set the formId
: https://github.com/kaliberjs/forms/commit/dd59d080af95b865459e66756f53e0ba0a0620aa
When using two or more forms on the same page in PHP, I'm getting the following message: