Home › Forums › Add-ons › Flexible Content Field › Inputs with same "name" is copied to other layouts › Reply To: Inputs with same "name" is copied to other layouts
In most cases the value from one layout should not effect the value in another layout, even if the fields have the same name. The reason for this is that fields are not stored under the field name when they are sub fields of a flexible content field. For example, let’s say there’s a flex field named “flex_field” and two different layouts both have a text field named “text_field”. If you create 2 layouts, one of each layout type the text fields for the first layout will be saved with the name flex_field_0_text_field
and the text field in the second layout will be saved with the name flext_field_1_text_field
There is only one instance that I can think of that would cause a value from one layout to effect another layout and it would take a specific sequence of actions to make it happen.
Under conditions and steps the value from the original first layout will appear in the second layout because it will not be replaced because the new field is hidden.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U
— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.
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.