Passer la navigation

[Résolu] How to restrict the number of inputs in multiple value field

This support ticket is created Il y a 2 années et 9 mois. 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.

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 2 années et 9 mois.

Assisté par: Christopher Amirian.

Auteur
Publications
#2473277

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

Link - lien caché

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

#2473329

Christopher Amirian
Supporter

Les langues: Anglais (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.