Score:0

User with only "Edit own webform" permission cannot add elements to own webform

ph flag

I have created a "form admin" role with three permissions only: "Access the webform overview page", "Create webforms", "Edit own webform" (Drupal 9.3.7, Webform 6.1.3). The user can create a webform but when trying to add an element then the page goes into "reload loop" (see two screenshots). The issue disappears only if I add "Administer webforms" permission or enable "access webform configuration" for that role on that webform (Home > Administration > Structure > Webforms). Both those additional permissions come with warning and I don't really want them to be enabled (they somehow contradict concept of "Edit own webform").

Further investigations showed (again with only "Edit own webform" permission given) that I can use [source] to create form content but if I try to edit it in [Elements] tab the edit panel appears and instantly disappears leaving "xxx has been updated". Console throws: "TypeError: null is not an object (evaluating 'a.contentWindow.document')" and "Error: cannot call methods on dialog prior to initialization; attempted to call method 'option'". But again, with "Administer webforms" permission on, this issue does not exist and everything works as expected.

I've found this old question https://www.drupal.org/project/webform/issues/3021948 and I relate to that but the answer given there doesn't seem to be working for me.

I ask for help, comments, suggestions?

best regards

Nikodem

'Select an element' overlay that appears an disappears in a loop

The screen in the background

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.