Skip Navigation

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

This support ticket is created 2 years, 2 months ago. 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.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 2 years, 2 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2473277

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

Link - hidden link

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

#2473329

Christopher Amirian
Supporter

Languages: English (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.