Drupal 11, webform 6.3.0-beta4:

As administrator (user 1): When I press the button "Save draft" the buttons "previous" and "next" are disabled. I think that it is fine.

As authenticated user: When I press the button "Save draft" the other buttons are NOT disabled. It is not so good.

Is it a "bug" or some kind of setting in the webform?

Comments

uv516 created an issue. See original summary.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)

I can't replicate this issue. There is no logic in the webform module to disable the other next and previous buttons when a draft is saved.

Please test this on a plain vanilla Drupal instance.

I added sleep(120); to \Drupal\webform\WebformSubmissionForm::draft to make sure the buttons are NOT disabled.

uv516’s picture

@jrockowitz: Thanks for the quick response.

I have run a webform as user 1 in Google Chrome.
When I press "Save draft" the other buttons are disabled during the saving, but not afterwards.

I have run the same webform as a regular user in FireFox:
When I press "Save draft" the other buttons are not disabled.

jrockowitz’s picture

I have client-side validation enabled; maybe that is the difference.

liam morland’s picture

Version: 6.3.0-beta4 » 6.3.x-dev

Have you tried this on a plain Drupal instance? There could be another module at work which is disabling the buttons.