Open wesleybl opened 7 months ago
@wesleybl I couldn't find where this code lies can you help me
@avengsum the controlpanels form is here:
We would have to do something similar to what is done in the content editing form:
It would be fantastic if you could fix this!
How can we show the error messages like showing on a seperate modal or under the input itself
@abhinaisai2002 If we are going to follow the way the content editing form does, we should show a modal at the end of the page. See:
But it would be great to show the error in the field itself. But perhaps for this, it would be necessary to change the backend, to say in which field the error was.
But if we have the modal, it would be a step forward.
Don't use that toast message as an example, the backend is serializing validation errors incorrectly so they are not shown next to the field like they are supposed to be.
Don't use that toast message as an example, the backend is serializing validation errors incorrectly so they are not shown next to the field like they are supposed to be.
@davisagli yes. But the controlpanel endpoint serializes in the same way. See the example in the issue description. So, for a fix without changing the backend, it would have to be the same way.
@avengsum @abhinaisai2002 would you be interested in fix this?
Describe the bug Validation error messages are not shown in any controlpanel. Either in those already existing in Plone or in new ones, added by products.
Response json example, when validation error occurs:
To Reproduce Steps to reproduce the behavior:
@test
@
Expected behavior Validation error message appears.
Screenshots
Software (please complete the following information):
Volto 17.0.1 Plone 6.0.7 plone.restapi 8.43.1 CMF 3.2 Zope 5.8.5 Python 3.11.1 (main, Dec 7 2022, 01:11:34) [GCC 11.3.0] PIL 9.5.0 (Pillow)