• Resolved cocebro

    (@cocebro)


    Hello,
    I have repeated fields that are added dynamically by the conditional fields pro plugin and populated by post types plugin for CF7 (drop-down select with pictures).

    The first fields of the group Bici if you choose in the first select: -Monta?a- or -Carretera- options then shows -Elige modelo de bici- fine with all the images. The problem is when the new (bici) fields are added. The options are shown but not the pictures.

    What could be the problem?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Ah yes, this is a common problem with some third party plugins.

    The plugin/script that creates the image-dropdowns probably only runs when the form is loaded. It will replace all select fields with the image-dropdowns when the form is loaded, and then it will stop.

    So when you add some fields with the repeater, a new select field is injected in the form, but the image-dropdown script is not expecting this, so it will not transform the select field.

    To solve this problem, it’s important that the script has some kind of init-function, that will re-initialize the dropdowns. To figure out which function, you need to check the source code or contact the author of the dropdown-script.

    Finally you should call this function each time a repeater is added, as explained here: https://conditional-fields-cf7.bdwm.be/docs/troubleshooting/fields-are-not-working-correctly-inside-repeater/

    This is kind of a technical problem, so if you’re not a developer it might be best to hire one. The task should be rather straight-forward for someone with a bit of JS experience.

    Thread Starter cocebro

    (@cocebro)

    Thanks Jules,

    I guessed something like this was happening. I contacted with the author but no response yet.
    I’ve been searching for some init function with no luck.

    Keep trying

    Thread Starter cocebro

    (@cocebro)

    Succeded!!

    No init function but including the js code that replaces the select input when repeater added did the trick

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with repeated fields’ is closed to new replies.