The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

How to record and display the repeater order number?

Labels

This Discussion is public

Notifications

This question is actually two questions, one for the Forms and One of the List.

Im using a repeater field and I want to have Steps.  For each step, I want a title of the field/section to reference the number.  So the first title will "Step 1" and the next will be "Step 2".  Each time the form "Add" button is pressed, we get a new title and a few fields (image/description).  So all we need is to display these titles and keep their orders.

I have not found any documentation for this.  I maybe missing it.  Thanks.

Hi Michael,
As far as I know, it is not possible with standard functionalities of Formidable Forms.

I would do the followings

1. Create repeater section and add fields inside
2. Add an HTML field as the first item inside repeater section
3. Experiment with different "Repeat Layout" in the field setting to get the right layout for you
4. Now the custom code part - Write Javascript to change the value of the HTML field to "Step x" whenever the "Add" button is clicked. If you are familiar with jQuery, this can be easily accomplished.

Documentation about how to add Javascript to Formidable forms https://formidableforms.com/knowledgebase/javascript-examples/

To have labels in your View as "Step 1", "Step 2", ...

1. Create a View for the repeater section. https://formidableforms.com/knowledgebase/create-a-view/#kb-create-a-view-from-a-repeater
In that View add [entry_position] shortcode to get 1, 2, 3, ... for each repeated item
2. Now include this View in the main View with appropriate filter to show only child items belong to the same parent
Above documentation has everything you need for this part

Working example using javascript to add headings to form (barebones):

https://devdocs.erentzen.com/add-headings-entry-1-entry-2-etc-to-formidable-pro-repeaters/

It looks good. Thanks for sharing Darryl

Discussion closed.