Skip Navigation

[Resuelto] Cred image field fails validation if blank, even when not required.

This support ticket is created hace 3 años, 7 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por ianG-5 hace 3 años, 7 meses.

Autor
Mensajes
#2030827

I am trying to:
Submit a post form that contains a blank cred field type='image' where the field is not required.

I expected to see:
From submit cleanly

Instead, I got:
Validation error, "You can only upload an image file"

I noticed this on a custom field, I check the field it not required. I tried a generic field on the same form, same issue. I tried a generic field on a different form, same issue.

#2030831

I assume this is not expected behavior.

#2030841

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

This was discovered internally just recently, and you are the first client to spot the problem.

We should be able to provide a fix in a hotfix which is expected in roughly a couple of weeks.

Please see this erratum for more details: https://toolset.com/errata/validation-error-if-image-field-is-blank-when-not-using-wp-media-uploader/

If you subscribe to that you'll get a notification when it is fixed.

#2031439

Thank you! That answers my question about "Taxonomy checkbox labels in a form toggle the wrong checkbox" too.