Hi,

i want to allow non-admin users to edit the submissions of one webform using the link like:
http://site8.dd:8083/webform/my-webform/submissions/358/edit where 358 is the "sid"

However, in the edit submission page, there is a section "Submission Information" which
i don't want it to be visible for non-admin users, is there an option to not display this section
while editing any submission ?

See image below:

Edit submission page

Thank you,

One more question:

does having about 100,000 submissions inside one webform affect its performance or the website performance ?

Thank you,

Comments

C.E.A created an issue. See original summary.

jrockowitz’s picture

StatusFileSize
new212.89 KB

#2997223: Convert webform submission information and navigation to render element is going to .webform-submission-information class to the details element and you add .webform-submission-information {display: none} to the custom CSS/JS.

c.e.a’s picture

I did not try the css method provided by you, but i applied the patch here and it is working like charm !

Note: after applying the patch, Idid not change any settings at all, i just went directly to any submission edit page and found that only the elements are displayed with data filled in (just perfect)

Thank you,

jrockowitz’s picture

Status: Active » Fixed

C.E.A You are going to have use the CSS method to hide the webform submission information and navigation.

The reason the submission information and navigation stopped appearing is that you did not reset your cache to fully apply the changes included in the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Eevvee’s picture

jrockowitz the problem of this method that it close Submission information for Admin too.

imclean’s picture

The submission information is a form element so you can add something like this to your .theme or .module file:

use Drupal\Core\Form\FormStateInterface;

/**
 * Implements hook_form_alter().
 */
function EXAMPLE_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  if (isset($form['#webform_id'])) {

    // Add user check and specific webform_id check here.

    // Remove Submission Information.
    unset($form['information']);
  }
}