You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On one of our apps which uses formie, when a user has only opted for necessary cookies and later submits a form they will be redirected to a url like this (even when ajax submission is on the formie form).
I notice the action changes on the submit event.
This looks to be intention as a way for Google to send a cookieless ping to google however as a concequence it redirects the user to the action:
However, I wonder if it's possible for the formie JS to somehow detect an action on a form element and prevent a redirect onwards, especially if the form is in ajax submission mode?
FYI - it does look like the submission data is stored, however they appear to have been labelled as spam in the backend.
Steps to reproduce
have consent mode v2
opt out of non-essential cookies
submit formie form
get redirect to page url like /[object%20HTMLInputElement]?_gl=x
Form settings
Multi-page form: Yes or No
Submission Method: Ajax or Page Reload
Client-side Validation: Yes or No
Custom Form Templates: Yes or No
Craft CMS version
5
Plugin version
3
Multi-site?
yes
Additional context
No response
The text was updated successfully, but these errors were encountered:
Hey @engram-design yes I did try exactly this suggestion, however despite being on an ajax formie form, submitting with a custom action will cause a redirect to the action URL rather than preventing it and showing the success message.
@joepagan Just tested that with an Ajax form, and that's working as expected to me, sorry to say. It's not redirecting to the actionUrl. There's no JS errors when submitting the form?
Describe the bug
On one of our apps which uses formie, when a user has only opted for necessary cookies and later submits a form they will be redirected to a url like this (even when ajax submission is on the formie form).
I notice the action changes on the submit event.
This looks to be intention as a way for Google to send a cookieless ping to google however as a concequence it redirects the user to the action:
It looks like Brandon has come up with a suggestion:
https://craftcms.stackexchange.com/questions/41657/url-passthrough-rewrite-failing-when-using-actioninput
Looks like other devs have reported the same issue to Google who will of course never respond:
https://support.google.com/tagmanager/thread/269636163/form-action-fields-changes-when-form-is-submitted-after-applying-consent-mode-v2?hl=en
However, I wonder if it's possible for the formie JS to somehow detect an action on a form element and prevent a redirect onwards, especially if the form is in ajax submission mode?
FYI - it does look like the submission data is stored, however they appear to have been labelled as spam in the backend.
Steps to reproduce
/[object%20HTMLInputElement]?_gl=x
Form settings
Craft CMS version
5
Plugin version
3
Multi-site?
yes
Additional context
No response
The text was updated successfully, but these errors were encountered: