Support

Account

Home Forums Backend Issues (wp-admin) Clone Fields

Solving

Clone Fields

    • chris

    • January 21, 2020 at 1:48 am

    Creating a Flex Content field and each layout needs clones of different field groups I created.

    Ive added a whole bunch successfully, but now i get a JS error when Im searching for the field to clone.

    “Uncaught TypeError: b.slice is not a function”

    the best i can tell is that ACF sends an ajax request with the String im searching for…and on response it would split the response in order to build the Select2 field options…but nothing is getting returned si it has nothing to splice….which now i wonder why nothing returns…as im searching for the field just like ive always done.

    I do know ACF has delt with an empty return of search data…

    Now I can create a new group and add at least 12 clone fields.

    My questions is are there limits on the number of fields?

    Just trying to figure out why it works on new field but not the one I want to edit.

  • The most likely cause of this is a PHP error that is causing the request to return an unexpected value. You can try turning on error logging to see if you can find out what’s going on https://wordpress.org/support/article/debugging-in-wordpress/

    • chris

    • January 21, 2020 at 3:04 am

    I believe it is a limit on fields.

    In the submission to the ajax call it passes all the fields of my flex content.

    I slashed some groups im not using anymore and it works now.

    I guess i should have taken a backup…

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.