Toolset allows you to create front-end forms for submitting and editing post information using repeatable field groups.

In Toolset, front-end forms are created using the Forms plugin. When you create repeatable field groups they will appear as a separate post type when creating the form.

In Toolset, front-end forms are created using the Forms plugin. When you create repeatable field groups they will appear as a separate post type when creating the form.

For example, let us say you have a post type called “Houses” and a repeatable field group for “Rooms” that belongs to each house. You can create a separate form that allows users to add “rooms” to existing houses.

Creating a Form for Repeatable Field Groups

To create a form for creating repeatable field groups, use the following steps.

  1. Go to Toolset → Post Forms and click the Add New button.
  2. After naming your form, use the Post type to create/edit to select your repeatable field group.

Please note that the status of content created using forms for repeatable field groups can only be that of “published.”

  1. Select what happens after visitors submit this form. A good option is to keep displaying the form. This will allow users to add more repeatable field groups. Please note that currently, there is no way to add multiple repeatable field groups from one front-end page (in one go).
  2. Forms drag-and-drop editor will automatically create a basic form for you. Please note that only if you mark the fields from your repeatable field group as required, they will be automatically added to the form. Otherwise, use the editor to manually add fields from your repeatable fields group.
  1. When done, click to finish and save your form.

You can now use the Toolset Forms Block to insert the form into any page and allow users to submit information using the repeatable field groups.

Forms for Editing Values of Existing Repeatable Field Groups

To use Toolset forms for editing values of existing repeatable field groups, you need to first create your editing form. Then, you need to create a View that lists your repeatable field group and add a link to that editing form.

To do this, use the following steps:

  1. Go to the Toolset Post Forms page and click the Add New button.
  2. Give your form a name, select the Edit existing content option and from the Post Types to create/edit dropdown menu select the repeatable field group. Adjust other form options as needed.
  3. Forms drag-and-drop editor will automatically create a basic form for you. Please note that only if you mark the fields from your repeatable field group as required, they will be automatically added to the form. Otherwise, use the editor to manually add fields from your repeatable fields group.
  4. Create a new page and insert a new View Block into it. Follow the View creation wizard and in the step for selecting the content to display, select your repeatable field group.
  5. Use the Block navigation and select the main View block. In the right sidebar, expand the Query Filter section and click the Add a filter button. In a dialog that appears, select the Post relationship or repeatable field groups owner option and click the Add query filter button. In the right sidebar find the Select items dropdown, select the desired repeatable field group and choose The post where this View is shown option.
  6. Use the Block navigation button to select the View Loop block and add the Toolset Forms block. In the dialog that appears, select your form in the Edit Post Forms section.

That’s it! You can now add your new View to a post or a template that has a repeatable field group whose values you want to edit.

Need help?

If you run into any problems or need our advice, create a new support ticket and our team will be happy to assist you.

What’s next?

Publish Content from the Front-end