foreach is not displaying any records for Repeater field in Formidable Pro Version 6.15.1

By: Ranjeet Singh | Asked: 10/07/2024
ForumsCategory: General questionsforeach is not displaying any records for Repeater field in Formidable Pro Version 6.15.1
Ranjeet Singh asked 1 week ago
The foreach shortcode does not display any data from a Repeater field in Formidable Pro Version 6.15.1. To reproduce the issue:
  • create a new Form with a repeater field (my Form and View definition is attached for easy import)
  • submit an entry with 3 values in the Repeater field
  • create a View using the foreach shortcode as described on https://formidableforms.com/knowledgebase/repeatable-section/#kb-displaying-repeater-fields
    • I tried both of these, neither display any data: [foreach 525][525]: [528][/foreach] and [foreach 525][525]: [528][/foreach 525]
Fun facts:
  • I replicated this issue on two different sites using different themes
  • One site had existing entries and views created in earlier versions of Formidable Pro.  The existing records continue to display correctly after updating to Formidable Pro Version 6.15.1.
Attachments
Victor Font replied 1 week ago

If you can replicate the problem, it's possible you uncovered. bug. Please open a ticket to report it to Strategy 11 support.

Ranjeet Singh replied 1 week ago

Will do, thanks @Victor Font .

1 Answers
Ranjeet Singh answered 1 week ago
I'm the biggest dummy.  I was using the field id of the first field in the repeater in the foreach shortcode instead of the field id for the repeater itself.  The correct code is [foreach 513][525]:  [528][/foreach] for the form/view I attached.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right