repeater2-for-gravity-forms icon indicating copy to clipboard operation
repeater2-for-gravity-forms copied to clipboard

Adding fields to repeater after it has been created

Open DFWCS opened this issue 3 years ago • 4 comments

I have noticed that I cannot add a new field into the repeater after it has been created. For example, if I have

repeater number field end repeater

and I go back later and decide I want a text label in there, so it looks like this

repeater text number field end repeater

The text field does not repeat. If I try to create a new repeater, sometimes it breaks the form entirely... it will not display... until I have deactivated the plugin and reactivated it, created new fields etc. I had to jump through a lot of hoops just to get it displaying on the site again. Is this is a known bug?

DFWCS avatar Jul 03 '21 05:07 DFWCS

I have determined that the repeater plugin was breaking my form, and I had to remove it. Once I did, all the issues I had been experiencing resolved themselves. I'm super disappointed, but I hope you will find a working recipe because it was really useful. :(

DFWCS avatar Jul 03 '21 06:07 DFWCS

There are lots of bugs with this plugin, but Gravity Forms 2.5 has a cache mechanism. I have experienced this myself when adding new form elements, I had to wait a bit or repeatedly SHIFT + refresh. It worked eventually.

I am slowly working on updating some code for a client of mine and I might be able to get more insight into how it's working.

wolffe avatar Jul 05 '21 12:07 wolffe

I am getting the same problem - adding a field to repeater breaks it - I also have a console error Uncaught TypeError: can't access property 8, repeater2Info.children is undefined

neilgee avatar Apr 05 '23 03:04 neilgee

I think I ran into a similar bug, I got it working by deleting the "Repeater end", changing my fields, then adding Repeater end back to the form.

scottsawyer avatar Jun 08 '23 20:06 scottsawyer