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

chris10207
chris10207

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 ?

mitch
mitch

Did you manage to figure it out?

chris10207
chris10207

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) {}
kollis
kollis

How you implemnt filterFields method for pivot class?

triasrahman
triasrahman

any solution for this?

1-5 of 5

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