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

I tried to extend the controller and check for the pivotmodel instance but it never comes up ex:

CompaniesController::extendFormFields( function($form, $model, $context){
     if(!$model instanceof CompanyOrganisationPivot)
            return;
}

i never see the pivot model coming up when i add a pivot data trough the relation widget and popup window.

is it possible to extend this pivot model form ?

Did you manage to figure it out?

not with this method but i managed to simulate it from the pivot model itself implementing the method filterFields()

public function filterFields($fields, $context = null) {}

How you implemnt filterFields method for pivot class?

any solution for this?

1-5 of 5

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