Dynamically insert form elements in Repeater field

By: Hrvoje K. | Asked: 03/12/2023
ForumsCategory: Code HelpDynamically insert form elements in Repeater field
Hrvoje K. asked 1 year ago

Hi all,  I'm using a formidable hook to auto-populate a repeater described on formidable examples here.    

This is working great, but I'm faced with a potential customer requirement to insert additional items between (or part of) some repeater elements.

So currently, this looks generic and simple/easy to maintain: 

  • repeater item 1
  • repeater item 2
  • ..
  • repeater item N

However, the desired outcome:

  • repeater item 1
  • repeater item 2
  • form page break!
  • custom HTML
  • repeater item 3
  • repeater item 4
  • ...

Adding these items would depend on the repeater properties (repeaters are divided in few groups which should then result in few of those HTMLs and page breaks). I understand I would need to sort the items in the auto-population hook, that seems straightforward, but I'm not sure about the other part.

Is there some kind of solution for this via hook or something?

Thanks in advance for any pointers or hints!

1 Answers
Best Answer
Bobby Clapp answered 1 year ago
I don't believe it is possible to insert a page break into a repeater. I don't have a solution for that.

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