This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
A repeater field with the same name as a field in the parent form overwrites the parent value. Why does the last name field, in the repeater, overwrite the value in the first parent name field? Can't get this to work.
fields:
name:
label: author.plugin::lang.input.name
span: auto
tabs:
fields:
socials:
type: repeater
tab: author.plugin::lang.input.socials
prompt: author.plugin::lang.message.add
form:
fields:
name:
label: 'author.plugin::lang.input.name'
span: auto
type: text
comment: 'author.plugin::lang.comment.social'
Shouldn't these things get sorted out automatically?
Last updated
Hi Mattias,
I think this should work correctly, as it is the same as: https://github.com/Hambern/octobercms.company/blob/b3e31bfa123fb59e1ef55eb76a7de7d256970ed0/models/company/fields.yaml#L6
Could it be a problem in the database structure?
The error occurs when you make the field translatable. So fields that are translatable gets overwritten...
1-3 of 3