How to disable validation on previous (and other) buttons on a Drupal 8 webform.

So I have Drupal 8 webform and it uses a multi page wizard. I've noticed that when I hit the previous button, the required fields on the CURRENT page give the JS validation errors saying that the fields are required. How can I turn off validation when the user clicks on the previous button? I am also using the new signature field and I get the same validation error on the first empty required field on the current page when click on the "Reset" button to clear the signature. It seems that any button that is pressed triggers the form validation.

403 Error on specific areas of the admin pages

Hello, new to drupal and couldn't see a similar case. I tried all the other solutions that solved '403 forbidden' error but couldn't lad a solution.

Add classes to Book links

I would like to add classes directly to the a element for the "Add child page" and "Printer-friendly version" links in the Book module that comes with Drupal 8.

End-to-end (CI + CD) dockerized Drupal 8 starting point

Hey guys,

We recently created a bare dockerized Drupal 8 starting point that isn't bloated with a bunch of extra modules and scripts for our projects and thought it may be useful to others. Happy to hear feedback or requests that are within scope (scope being the top devops layer only - not theme related) that aren't already included.

https://github.com/LevInteractive/dockerized-drupal-starter

Basic overview:

How can I get the current region id inside the 'hook_preprocess_block'?

How can I get the current region ID inside hook_preprocess_block()?
I tried the following code, but it seems something is wrong.

function ThemeName_preprocess_block(&$variables) {
  if ($variables['elements']['#region'] == "nav") {
    $variables['attributes']['class'][] = 'SomeStyle';
  }
}

Block not displayed in "block layout page" drupal 8

I have created block file at "src/Plugin/Block/ArticleBlock.php"
Given the class name as "ArticleBlock"
Created info.yml for modules and enabled modules
Cleared cache more than 1000 times
Checked by clicking "place block" on structure/block layout

My block is not there.

Did i missed something?? anybody had already faced this issue.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x