Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plone 6 Classic UI - form error message and validation issue #16

Closed
szakitibi opened this issue Feb 28, 2024 · 0 comments · Fixed by #17
Closed

Plone 6 Classic UI - form error message and validation issue #16

szakitibi opened this issue Feb 28, 2024 · 0 comments · Fixed by #17

Comments

@szakitibi
Copy link

szakitibi commented Feb 28, 2024

The form pat-validation seems to be broken with collective.honeypot added to the buildout.

The plone.app.z3cform.templates.macros.pt with Plone 6 has a new status message layout.

Current collective.honeypot v2.1 has this override:

<dl class="portalMessage error" tal:condition="has_error">
<dt i18n:translate="">
Error
</dt>
<dd tal:content="status" />
</dl>
<dl class="portalMessage info" tal:condition="not:has_error">
<dt i18n:translate="">
Info
</dt>
<dd tal:content="status" />
</dl>

but it has been changed in plone.app.z3cform v4 to:

https://github.com/plone/plone.app.z3cform/blob/6dc633020db81bc3ab4e5b462c5e347ee349efcd/plone/app/z3cform/templates/macros.pt#L32-L45

As a result the form error messages are displayed as plain text, instead of alerts.

@szakitibi szakitibi changed the title Plone 6 Classic UI - form error message issue #194 Plone 6 Classic UI - form error message issue Feb 28, 2024
@szakitibi szakitibi changed the title Plone 6 Classic UI - form error message issue Plone 6 Classic UI - form error message and validation issue Feb 28, 2024
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 a pull request may close this issue.

1 participant