-3

When I go to https://example.com/admin/structure/webform

I would like to have the webform filtered by active ones.

Where do I change that?

0

There is no UI setting for that.

You have to change it programmatically via custom module in mymodule.module file or via theme in mytheme.theme file.

Example:

mytheme.theme

/*
 * Implements hook_form_FORM_ID_alter()
 */
function mytheme_form_webform_filter_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  $form['filter']['state']['#default_value'] = 'open';
}
0

You might need to override and extend the \Drupal\webform\WebformSubmissionListBuilder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.