Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Unable to display wizard settings
Steps to reproduce
- create form with multiple page
- go to webform entity -> settings -> form
- on "FORM CUSTOM SETTINGS", make sure that "POST(default)" is selected
What is expected
"Wizard settings" form fieldset appears.
What we get
Wizard settings" form fieldset stay hidden like a ninja !
Proposed resolution
On src/EntitySettings/WebformEntitySettingsFormForm.php at line 299, we can see that the fieldset appears when input name "method" is empty. But there is no input with "method" as name on form.
I think the field that is referenced is the select name "form_method", line 618.
I propose to replace :
':input[name="method"]' => ['value' => '']
with :
'select[name="form_method"]' => ['value' => '']
Comment | File | Size | Author |
---|---|---|---|
#2 | webform-wizard-settings-hidden-3281363-1.patch | 1.3 KB | VieilOurs |
Screenshot_1.png | 56.31 KB | VieilOurs |
Comments
Comment #2
VieilOurs CreditAttribution: VieilOurs commentedhere is a patch
Comment #3
cilefen CreditAttribution: cilefen commentedComment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedGood catch! Here is what triggered the regression. #3240399: Move form #method and #action from properties to settings
Comment #5
jannakha CreditAttribution: jannakha as a volunteer and at Tomato Elephant Studio for Australian Competition and Consumer Commission (ACCC) commentedworks on 6.1.3
thanks for the fix!
Comment #6
VladimirAusAlso fixes issue for
6.2.0-beta2
when Wizards are always visible regardless of the method.Thank you.
Comment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@VieilOurs Thanks for the patch.