I have a CF7 form that works perfectly in the browser, but not as well in an iFrame.
The form loads in the iFrame, so I don't believe there are any cross-site issues to consider.
However, when I submit the form none of the actions that I have set up in CF7 are run. The debugger shows the values in the form once the form is submit, but the first page simply reloads on screen. I have some custom PHP actions and some DB Save actions followed by a redirect page to complete the form submission. None of these actions are run once the form is submitted inside the iFrame, but they run correctly when the form is run outside the iFrame.
Is there something else I need to consider apart from various cross-site origin settings? Also, if you have working scripts to force the correct cross-site origin settings for iFrames then can you please share or offer some advice?
If there are Joomla 4 issues that you are aware of that might be causing this problem can you let me know?
Thanks a lot.
The form loads in the iFrame, so I don't believe there are any cross-site issues to consider.
However, when I submit the form none of the actions that I have set up in CF7 are run. The debugger shows the values in the form once the form is submit, but the first page simply reloads on screen. I have some custom PHP actions and some DB Save actions followed by a redirect page to complete the form submission. None of these actions are run once the form is submitted inside the iFrame, but they run correctly when the form is run outside the iFrame.
Is there something else I need to consider apart from various cross-site origin settings? Also, if you have working scripts to force the correct cross-site origin settings for iFrames then can you please share or offer some advice?
If there are Joomla 4 issues that you are aware of that might be causing this problem can you let me know?
Thanks a lot.
Worth mentioning...
When the form is submit outside the iFrame, the debugger shows the __cf_token value.
However, when the form is run inside the iFrame the __cf_token value does not display.
I can also recreate this on another site using CF7 and Joomla 4.
Lastly, I have created basic W3 Schools forms on the server outside of CF7 and Joomla 4, and they are working fine in the iFrame. Therefore, I think the problem is with Joomla 4 (I have the HTTP Headers plugin disabled completely) or CF7.
Any thoughts?
When the form is submit outside the iFrame, the debugger shows the __cf_token value.
However, when the form is run inside the iFrame the __cf_token value does not display.
I can also recreate this on another site using CF7 and Joomla 4.
Lastly, I have created basic W3 Schools forms on the server outside of CF7 and Joomla 4, and they are working fine in the iFrame. Therefore, I think the problem is with Joomla 4 (I have the HTTP Headers plugin disabled completely) or CF7.
Any thoughts?
You need to login to be able to post a reply.