This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

gohhan
gohhan

I added a lot of Empty AJAX Form to the page with one template. The first form works, and the rest depend on it. Can they be made independent from each other?

mjauvin
mjauvin

What do you mean independent?

gohhan
gohhan

I'm sorry. To make the forms work on its own. Now the first form works. But validation errors or notifications about the successful submission of the second form pop up in the first.

I think this problem is that the flash message block has the same ID.

<div id="{{ __SELF__ }}_forms_flash"></div>

I could pass the ID records, but the data is not transmitted (https://octobercms.com/forum/post/magic-forms-inside-the-builder-record-list) :) Could there be another way to random generate an ID block with flash messages?

Last updated

mjauvin
mjauvin

If you give each component a different alias, the ID should be different.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.