[Resolved] Repeat Sets of Fields for submission form
This support ticket is created 6 years, 9 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to: in a creds submission form have a set of fields that as a group repeat e.g. creds - year, project, company, role, main contact. The idea is that a user can add as many or as few creds as they have relevant experience in. This is in essence like a job site would where you enter your experience by time period from to. We do not need the from to just a year for the project.
Actually we are following wordpress practices and since on the backend you can only repeat a single field and not an entire group of fields then this function is carried over to our CRED forms. This means that with our CRED forms you can only repeat single fields and not an entire group of fields.
Hi, thanks for getting back to me. What if I create a CPT called creds and in that have post fields: company, project, year. Is it then possible to have a cred form have some form of add new CPT 'cred' and then add another 'cred' CPT and so on.
It would be possible then but that would mean you will need to add multiple instances of that cred form to the page. Essentially you will be creating child posts of some parent. I can see this working but the problem is there will be a fixed number of repeating for the CRED form.
Hi, thanks for that thread. I'm not clear from it how it would work from the customers perspective, which is critical.
So what I want to achieve based on the thread:
1. First cred form creates parent post.
2. Second form (after a redirect based on button or condition - not important) takes to second form. This second form has the 'repeater' fields and generates a new child post type.
3. After submitting form 2. The user has option to create another form same as 2. or progress to another form (not important what form).
The user doesn't need to see any views or finished post at anytime while the cred forms are being used for the entry of information.
The limitations here is that you are not able to dynamically add the new form to the page. So what you can do is to set set the form to keep displaying the form after it has been submitted, this way if a user wants to add another record they can.
What I recommend too is that you add some note on the form indicating to the customers on how to add multiple records.