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

Daneel
Daneel

Hi all,

I'm extending the static Pages plugin with some additional form fields, which works great:

    Event::listen('backend.form.extendFields', function ($widget) {
        if (!$widget->getController() instanceof \RainLab\Pages\Controllers\Index) {
            return;
        }

        $widget->addTabFields([
            'bereich' => [
                'label' => 'Bereich',
                'tab' => 'Zusatzinformation',
                'type' => 'dropdown'
            ],
            'thema' => [
                'label' => 'Thema',
                'tab' => 'Zusatzinformation',
                'type' => 'dropdown',
                'dependsOn' => 'bereich'
            ],

However, the "dependsOn" seems not to be working. Whenever I change the "Bereich" dropdown (which the "Thema" dropdown depends on), I get a "The requested object was not found." popup error message.

Any ideas what I'm doing wrong here?

Many thanks and all the best, Michael

Last updated

1-1 of 1

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