• Resolved pzh20

    (@pzh20)


    Good morning all,

    I need to change my relationship between my Photos and People field groups to bi-directional. I currently have a repeater field with a relationship field pointint to the People field group.

    I`m not exactly sure what I need in the People FG to add a bi-directional relationship, and whether changing things from one-way relationship to two-way will destroy current relationships.

    Any help would really be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    Unfortunately the native ACF Bi-directional or the ACF Extended Bi-directional features are not compatible with the Repeater/Flexible Content field. In fact, there is no way to define how a specific row in a Repeater would be saved on the other side. This option is not sustainable and flawed by design, this is why it cannot be implemented.

    The main difference between the two is that the ACFE Bidirectional feature support the Group field.

    I hope this answers your question.

    Have a nice day!

    Regards.

    Thread Starter pzh20

    (@pzh20)

    Ah, that`s not what I hoped for. Thanks Konrad

    Thread Starter pzh20

    (@pzh20)

    Hi Knorad,

    I have reconfigured my field groups with a bi-directional relationship sepaerated from the repeater after you confirmed that it cannot reside inside it. This however changes the logic of my page as follows;

    FROM
    1, load image from PostID in URL
    2, Once loaded, run Javascript calling external API, then
    3, Click the ‘Add Row’ button on the ACF/E form n times (provided from API)
    4, Update 4 fields on each added row
    5, allow the user to continue updating the form and submit

    TO
    1, load image from PostID in URL
    2, Once loaded, run Javascript calling external API, then
    3, add x rows to the repeater field in the field group via JavaScript and add the data as in 4 above
    4, Show the the form and allow the user to update and submit

    I’ve thought about possibly creting an intermediate page between the image upload and this page doing the repeater fields addition, but this might now be the best approach.

    Any input to this would be grately appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.