Skip to content

Conversation

@Adnan-cds
Copy link
Contributor

Multiple LocalGov Forms Date Webform elements in multistep Webforms is causing WSOD (White screen of death). This is because the parent class of the LocalGov Form Date element has the datelist element name hardcoded into it. So it fails for localgov_forms_date. As a work-around, we override the relevant parent method.

Multiple *LocalGov Forms Date* Webform elements in multistep Webforms is causing
WSOD (White screen of death).  This is because the parent class of the
*LocalGov Form Date* element has the `datelist` element name hardcoded into it.
So it fails for localgov_forms_date.  As a work-around, we override the relevant
parent method.
@Adnan-cds Adnan-cds linked an issue Sep 28, 2022 that may be closed by this pull request
@finnlewis
Copy link
Member

@Adnan-cds is keen to add a test to this before merging.

@Adnan-cds Adnan-cds marked this pull request as draft October 3, 2022 14:45
@Adnan-cds Adnan-cds marked this pull request as ready for review November 3, 2022 11:30
Copy link
Contributor

@andybroomfield andybroomfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this with a webform with three localgov date elements on a page in a page wizard element.
Without this PR, I was not able to proceed past the page with the date elements on them once I put a value in them.
With the PR, able to proceed to next page, and the validation rules of the date element also apply.

Screenshot 2022-12-16 at 4 57 04 pm

@Adnan-cds
Copy link
Contributor Author

Thanks a lot for the detailed test Andy. Merging...

@Adnan-cds Adnan-cds merged commit 9876f55 into 1.x Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LocalGov Forms Date element breaks multistep form

4 participants