I am trying create a form with repeating fields groups using CRED, for example, I am going to have my customers fill out how many family member does the person have, and how old, gender and occupations etc, that means if the customer's family member is more than one person, the customer who needs to add new one until completed the form. I know I can add single repeating field, but I want a fields container which includes several fields and can be repeated together, could you please tell me what I should do? Thanks!
Hi, Toolset isn't set up to allow you to create groups of repeating fields like this, either on a Post or in a CRED form. Instead, Toolset provides a way to create child posts that can contain the same custom fields. You can associate each child post with a parent post using CRED. So the workflow would be something like this:
- Use CRED to create parent post
- After post is created, display the post
- In your post content template, Include another CRED form. This form will be used to create child posts. Each child post will represent 1 family member, and will include the custom fields you need.
- Also in your post content template, include a View that shows all the child posts of the current post.
- After child post is created, display the parent post again, so the View updates with the new child post and the CRED form is available to continue adding new child posts.
Parent post
--Child post 1
----Custom field 1
----Custom field 2
----Custom field 3
--Child post 2
----Custom field 1
----Custom field 2
----Custom field 3
--Child post 3
----Custom field 1
----Custom field 2
----Custom field 3