- Issue created by @Anybody
- 🇩🇪Germany Anybody Porta Westfalica
One question upfront: Does this require "Allow users to post submissions from a dedicated URL for all webform" option to be enabled at /admin/structure/webform/config?
If yes, maybe this should be added to the documentation or even better use Form States API to ensure it's both enabled?I also enabled this one and tried /form and /webform but both didn't fix the issue.
What am I missing or doing wrong? I'm even quite sure it was working in the past, but sadly only 99% sure I've tested it as anonymous user.
As admin user it works as expected in the dialog! - 🇩🇪Germany Anybody Porta Westfalica
OK, I finally had some time to go into details.
Indeed, it's only possible to use the "Site-wide dialog support", if
So I see some possibilities to solve this, but I think it would make sense to first discuss the way to go, before touching code.
Some resolution ideas:
At webform global settings
/admin/structure/webform/config
and each individual webform configuration (/admin/structure/webform/manage/X/settings
):- ... a warning could be shown, if
Enable site-wide dialog support
checkbox is checked, which informs users that this option also needs theAllow users to post submissions from a dedicated URL for all webform
option to be enabled - ... an error could be triggered on form save, if
Enable site-wide dialog support
checkbox is checked, butAllow users to post submissions from a dedicated URL for all webform
option is disabled. - ... place the dialog option within the
Allow users to post submissions from a dedicated URL
fieldset to show the relation more clearly and make it dependent
Would be great to get maintainer feedback, perhaps there are better alternatives or I'm still missing something.
Now at least with both options enabled, the functionality works as expected! 🎉
But it's super risky to run into this currently, as it's not documented in the admin UI. - ... a warning could be shown, if
- 🇩🇪Germany gogowitsch
Personally, I would go with your solution 2, “an error could be triggered on form save”. It strikes a good balance for site owners to understand what the problem is.
About solution 2, I also like that GET requests are not affected by the small performance penalty of the additional permission check.
- Status changed to Needs review
24 days ago 3:20pm 23 August 2025 - 🇺🇸United States jrockowitz Brooklyn, NY
- ... a warning could be shown, if Enable site-wide dialog support checkbox is checked, which informs users that this option also needs the Allow users to post submissions from a dedicated URL for all webform option to be enabled
I am always open to adding documentation to the UI.
- ... an error could be triggered on form save, if Enable site-wide dialog support checkbox is checked, but Allow users to post submissions from a dedicated URL for all webform option is disabled.
'Enable site-wide dialog support checkbox" allows webform dialogs to be used on any page of the website, which is a good thing. Some sites might be using this API to open nodes via
Some page →
- ... place the dialog option within the Allow users to post submissions from a dedicated URL fieldset to show the relation more clearly and make it dependent
Webform dialogs support does not have to be tied to posting submissions.
- ... use form state to only show the dialog option and links, if Enable site-wide dialog support checkbox is checked (but I think that might be confusing!)
Better documentation is more important.
- 🇺🇸United States jrockowitz Brooklyn, NY
The MR adds the below warning to the webform dialog details widget.
- 🇩🇪Germany Anybody Porta Westfalica
Thank you very very much @jrockowitz thank you!
- Merge request !703Issue #3477308: Access denied when using webform dialog as anonymous user → (Merged) created by jrockowitz
-
jrockowitz →
committed 55529b9e on 6.3.x
Issue #3477308 by jrockowitz, anybody, gogowitsch: Access denied when...
-
jrockowitz →
committed 55529b9e on 6.3.x
-
jrockowitz →
committed 55529b9e on 6.x
Issue #3477308 by jrockowitz, anybody, gogowitsch: Access denied when...
-
jrockowitz →
committed 55529b9e on 6.x
Automatically closed - issue fixed for 2 weeks with no activity.