Title: Problem with repeatable fields
Last modified: August 21, 2016

---

# Problem with repeatable fields

 *  Resolved [DogHustler](https://wordpress.org/support/users/doghustler/)
 * (@doghustler)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/)
 * I have a problem when using a repeatable field group on a custom post type (not
   sure if the problem only happens on CPTs though).
 * When clicking “+Add” while editing a CPT post it gets stuck. It displays the 
   text “Adding” but then it stays there.
 * Anybody have a solution for this?
 * Thanks,
    Dan
 * [http://wordpress.org/plugins/simple-fields/](http://wordpress.org/plugins/simple-fields/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/problem-with-repeatable-fields/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-repeatable-fields/page/2/?output_format=md)

 *  Thread Starter [DogHustler](https://wordpress.org/support/users/doghustler/)
 * (@doghustler)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4481766)
 * For some reason it seems to work in Chrome, but not in Firefox, Safari and Opera.
   I’m using a MacBook…
 * I also use Simple Fields on the regular “Pages” post type and it works there.
   Very strange.
 *  [mahlerthetitan](https://wordpress.org/support/users/mahlerthetitan/)
 * (@mahlerthetitan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4481989)
 * I, too, am stuck with ‘Adding…’, if I use Firefox (which I prefer to do). It 
   works fine in Chrome, just like DogHustler.
 * I’m also on a Mac (using Mountain Lion).
 * If the author needs any more info, I’m happy to provide it.
 * Thanks,
    Chris
 *  Plugin Contributor [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4481990)
 * Does any of you have access to firebug or web inspector and can check what the“
   console” says when you click Add?
 *  [mahlerthetitan](https://wordpress.org/support/users/mahlerthetitan/)
 * (@mahlerthetitan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4481991)
 * Hi Pär,
 * Sure thing. Here is the output from Firebug’s Console.
    Sorry the formatting 
   isn’t ideal, here:
 * >  10:43:44.051 Use of getUserData() or setUserData() is deprecated. Use WeakMap
   > or element.dataset instead. requestNotifier.js:64
   >  10:43:45.755 Use of getPreventDefault()
   > is deprecated. Use defaultPrevented instead. load-scripts.php:4 10:43:46.875“
   > init simple_fields_file_field” scripts.js:22 10:43:47.191 Use of Mutation Events
   > is deprecated. Use MutationObserver instead. script.js:19 10:43:48.497 Use 
   > of getUserData() or setUserData() is deprecated. Use WeakMap or element.dataset
   > instead. requestNotifier.js:64 10:43:57.109 Use of getUserData() or setUserData()
   > is deprecated. Use WeakMap or element.dataset instead. requestNotifier.js:64
   > 10:43:57.141 SyntaxError: unmatched ) in regular expression load-scripts.php:
   > 4
 * Do let me know if you need any more information. Thanks for looking into this.
   🙂
 *  Thread Starter [DogHustler](https://wordpress.org/support/users/doghustler/)
 * (@doghustler)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4481992)
 * I have found out part of the problem. If I deactivate TinyMCE Advanced the plugin
   works again so there seems to be a conflict between these two plugins.
 * I use the textarea field type and I think that TinyMCE tries to change the tool
   bar for these (as the are HTML enabled). For some reason this no longer works.
   But if the problem is in Simple Fields or TinyMCE, I don’t know.
 * //Dan
 *  [mahlerthetitan](https://wordpress.org/support/users/mahlerthetitan/)
 * (@mahlerthetitan)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4481993)
 * Ahhh. Good call, DogHustler.
 * I’m also using TinyMCE Advanced on my site and can confirm that, when I deactivate
   TinyMCE Advanced, the “adding” function in Simple Fields works perfectly, in 
   Firefox.
 *  [cokeyblokey](https://wordpress.org/support/users/cokeyblokey/)
 * (@cokeyblokey)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482009)
 * I have a variation of this problem too.
 * I’m using WP 3.9 (multi-site)
 * If I try and add a repeatable field set to any page, post or custom post type,
   it gets stuck on the ‘adding’ message. If I then ‘update’ the page then the new
   set is there.
 * This happens with Chrome, Firefox and IE (all on win7)
 * I’m sure it’s something to do with the new TinyMCE editor that ships with WP 
   3.9 but it’s a problem that definitely needs addressing.
 *  [ishanbansal](https://wordpress.org/support/users/ishanbansal/)
 * (@ishanbansal)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482010)
 * Just wanted to throw in my two cents:
    1. I don’t have TinyMCE Advanced plugin
   and I am still getting this problem. 2. I tried installing TinyMCE Advanced and
   then disabled it, just to see if that works, but no luck. 3. I can confirm cokeyblokey’s
   observation that if we click on update or save draft etc., then the new set of
   fields is added.
 * And this does needs addressing, or at least a workaround.
 *  [cokeyblokey](https://wordpress.org/support/users/cokeyblokey/)
 * (@cokeyblokey)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482011)
 * If you uncheck ‘Use HTML editor’ in the repeatable field options of Simple Fields
   then the fields get added as they should. Developers are working on a fix (as
   per another thread).
 *  [tscok](https://wordpress.org/support/users/tscok/)
 * (@tscok)
 * [12 years ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482013)
 * I’m having the same issue with adding a repeatable field. In my case the console
   stated there was an unexpected `;` in or near jQuery.
 * The event function in scripts.js of the simple-fields plugin requests the field
   group (repeatable field) from the server using a XHR post request. The respons
   data has a very confusing line of code in it
 * `if ( ( tinymce.DOM.hasClass( wrapper, 'tmce-active' ) || ! tinyMCEPreInit.qtInit.
   hasOwnProperty( edId ) ) &amp:&amp: ! init.wp_skip_init ) {`
 * I asumed that the `&amp:&amp:` in the middle of the if statement was the culprit
   so I added `replace('&amp:&amp:','&&')` on line 415 in the simple-fields scripts.
   js which solved the problem.
 * (Because this forum editor converts any attempt of writing the entity name of
   ampersand into ampersands I have replaced the comma with a colon in the code 
   above.)
 * Editing the plugin is of course not ideal but in my opinion better than editing
   WP core files.
 *  [ishanbansal](https://wordpress.org/support/users/ishanbansal/)
 * (@ishanbansal)
 * [12 years ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482014)
 * I was not able to find the code that tscok mentioned, but the code on following
   thread fixed the issue for me:
 * [http://wordpress.org/support/topic/error-in-wordpres-39?replies=1](http://wordpress.org/support/topic/error-in-wordpres-39?replies=1)
 *  [robalan](https://wordpress.org/support/users/robalan/)
 * (@robalan)
 * [12 years ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482015)
 * So was this not fixed in the update? C’mon…
 *  Plugin Contributor [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [12 years ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482016)
 * I hear ya! Let me know if the latest update fixes it.
 *  [robalan](https://wordpress.org/support/users/robalan/)
 * (@robalan)
 * [12 years ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482017)
 * That did it! Thank you!
 *  [loopcustom](https://wordpress.org/support/users/loopcustom/)
 * (@loopcustom)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/#post-4482019)
 * I too am having the same problem…
 * Mac 10.9.2
    Firefox – stuck at Adding… Chrome – no problem Safari – stuck at 
   Adding…
 * …and I believe I have found the culprit. Within the TinyMCE Advanced settings
   under Advanced Options, there is a checkbox that reads: Stop removing the <p>
   and 
    tags when saving and show them in the HTML editor. When this is checked,
   the problem arises; uncheck it, it ceases.
 * I hope this helps…
 * Thanks!

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/problem-with-repeatable-fields/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-repeatable-fields/page/2/?output_format=md)

The topic ‘Problem with repeatable fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-fields_fafafa.svg)
 * [Simple Fields](https://wordpress.org/plugins/simple-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-fields/reviews/)

 * 17 replies
 * 9 participants
 * Last reply from: [fantara](https://wordpress.org/support/users/fantara/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/problem-with-repeatable-fields/page/2/#post-4482023)
 * Status: resolved