Hello,
Just found a bug in octobercms 4.3 when you use a repeater in a tailor content group.
Lets imagine that mixin :
uuid: blog_builder
handle: Blog\Builder
type: mixin
name: Builder
fields:
builder:
label: Content
type: repeater
displayMode: builder
groups:
title:
name: Titre
icon: ph ph-text-h-two
description: Un titre Hn
fields:
title:
label: Titre
type: text
span: auto
tag:
label: Tag
type: balloon-selector
span: auto
default: h2
options:
h1: H1
h2: H2
h3: H3
h4: H4
h5: H5
h6: H6
richeditor:
name: Texte
icon: ph ph-article
description: Une zone de texte large
fields:
content:
label: Zone de texte
type: richeditor
size: giant
...
And that blueprint :
uuid: blog_articles
handle: Blog\Articles
type: stream
name: Article
drafts: false
primaryNavigation:
label: Blog
icon: ph ph-newspaper
order: 500
groups:
simple:
name: Simple
fields:
contenu:
tab: Contenu
label: Contenu
type: richeditor
span: adaptive
column: false
builder:
name: Builder
fields:
contenu:
tab: Contenu
label: Contenu
type: mixin
source: Blog\Builder
span: adaptive
column: false
Then, to reproduce the bug :
- Try to create an article
- Change content mode for “builder”
- Try to add something in the repeater
You will get the following error :
A widget with class name ‘formBuilder’ has not been bound to the controller
Note : If you invert the order of groups (so builder first, then simple) it works. So the issue seems to be related to the ajax refresh that occurs when you change content mode.
Best regards,