Navigation überspringen

[Gelöst] How to restrict the number of inputs in multiple value field

This support ticket is created vor 2 Jahre, 9 Monaten. 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.

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Christopher Amirian vor 2 Jahre, 9 Monaten.

Assistiert von: Christopher Amirian.

Author
Artikel
#2473277

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

Link - versteckter Link

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

#2473329

Christopher Amirian
Unterstützer

Sprachen: Englisch (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.