For the first link, its giving me only to limit the number of maximum number of times I can get a user to limit. I need to have both, a minimum and maximum. It somehow needs to be linked to my quantity field. Like lets say, the user selects quantity of 5. The repeater fields should not be less than 5 nor greater than 5. And I have like multiple amount of fields in the repeater section.
It's sounding like you're going to need to do this in jQuery. Once the quantity is set, you create the repeater rows, making the fields required so that they can't create any less. Make sure the add/remove buttons are hidden. You might be able to get some help from this link - https://formidable-masterminds.com/repeaters-and-complex-jquery-operations/
Okay, so lets remove this thing about min and max of the Repeater field. I have lets say a quantity of 20, and then the repeater fields which are about 17-19 fields. Per repeater = 1 quantity. Now, making the user click 20 times and making this form longer than it should be and increasing the load time on the site is quite harmful. It might even crash the User's browser. Is there no way, where the user can submit ONE repeater form, click add/remove/next and then submit another one. During this entire page change thing, there is a table sort of thing that shows the data he has entered till now.
It "appears" to me that you'd benefit from re-designing how the user inputs data, if you're concerned about how much stuff the user is entering (understandably). One idea, that may be way out there, is having the user upload a CSV file and then you go through it and create entries via PHP code. Though even as I type it, it seems like that would be a lot of code to validate fields, etc.
Please login or Register to submit your answer