Skip to content

[5] AJAX loading multiple templates #1088

Discussion options

You must be logged in to vote

Hi @Coysh,

You're rendering the dataProtectionStatement outside of the form.renderClosingTag.
Freeform's AJAX loads a re-rendered form HTML and scripts after a successful submit and replaces the current <form>...</form> with those. Since your data protection block is rendered outside, the initial render remains unreplaced, and the replaced HTML contains another one.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1085 on February 22, 2024 18:51.