Saltar navegación

[Resuelto] How to restrict the number of inputs in multiple value field

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

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Christopher Amirian hace 2 años, 10 meses.

Asistido por: Christopher Amirian.

Autor
Mensajes
#2473277

I am using the file field to allow users to upload multiple resumes.

Link - enlace oculto

I would like to allow only up to 3 resumes. How can I add this restriction in Toolset?

#2473329

Christopher Amirian
Colaborador

Idiomas: Inglés (English )

Hi there,

There is no built-in way in Toolset to achieve such feature.

You can use the Javascript code below to know how to change it to accommodate your use-case:

https://toolset.com/forums/topic/limit-number-uploading-files/#post-335393

Please consider that it is a Javascript code and it does not control the number of uploads in the backend. So if for some reason the JS code fail to run the user might be able to add more files.

Thank you.