Skip Navigation

[Resuelto] JavaScript error for required image field prevents form from saving

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The issue here is that the user is unable to submit their edit post form because of a required image field. Even though the image is already in that field.

Solution:
It seems that this is a known issue and we have a workaround in the link below.
https://toolset.com/errata/required-image-fields-cred-form-will-appear-not-set-re-upload-new-image/

This support ticket is created hace 6 años, 8 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Valeriia hace 6 años, 8 meses.

Asistido por: Shane.

Autor
Mensajes
#631635

Hi,

Starting from today I notice the following problem:

Impossible to save a form that includes a required image field. In consloe I see:

"An invalid form control with name='wpcf-penpal-avatar' is not focusable."

When I remove the flag "Required" in the post fields settings, the saving works fine.

Please advise. Thanks.

#631663

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Valeria,

Thank you for contacting our support forum.

Could you provide a bit more details here ?

Is it that you are trying to submit the form with an empty required image field ? Or has the field been filled out but the form is still not being submitted even with the image field having an image there.

Please let me know.

Thanks,
Shane

#631839

Hi Shane,

It's the edit form and the image is already uploaded a while ago. I'm just trying to re-save it and can not.

Thanks for helping.

#632123

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Valeria,

It seems that this is a known issue and we have a workaround in the link below.
https://toolset.com/errata/required-image-fields-cred-form-will-appear-not-set-re-upload-new-image/

Please let me know if this helps.
Thanks,
Shane

#632365

Hi Shane,

Thanks for the link, it's working now.