This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

hambern
hambern

I've noticed a problem. The Form::addTabFields() also adds field to repeater fields outside the tab. In the fields.yaml it looks like this:

customization:
            tab: jiri.jkshop::lang.products.customization_tab
            label: jiri.jkshop::lang.products.customization
            type: repeater
            form:
                fields:
                    label:
                        label: jiri.jkshop::lang.products.label
                        type: text
                    value:
                        label: jiri.jkshop::lang.products.value
                        type: text

Now I want to add another field from another plugin:

$widget->addTabFields([
        'properties' => [
          'label' => 'hambern.properties::lang.properties.menu_label',
          'nameFrom' => 'title',
          'type' => 'relation',
          'tab' => 'hambern.properties::lang.plugin.name',
        ]
      ]);

The result is that the new field not only ends up in it's own tab but also in every repeater field. There must be a problem in the Form::addTabFields() method. Right?

mitch
mitch

I have the same problem. Did you find the solution?

Last updated

hambern
hambern

Nope not yet... :(

mitch

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.