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

muhsin23739
muhsin23739

I Have the following fields

plan:
        label: Plan
        tab: account
        type: relation
        required: true
        placeholder: Select Plan
        emptyOption: No Plan Selected

    business:
        label: Select Business
        tab: account
        type: dropdown
        required: true
        placeholder: Select Business
        options: getBusinessOptions
        trigger:
            action: show
            field: plan
            condition: value[1]

And the corresponding plan relation is

   public $belongsToMany = [
    'plan' =>[
        'MyPlugin\Plans\Models\Plans',
        'table' => 'cls_useraccount_subscription',
        'key'=>'user_id',
        'otherKey' => 'plan_id',
    ],
];

I need to show business field only when plan is 1 , but it is working fine with belongsTo plan relation , My need is to make it work with belongsToMany relation.

Thanks in advance.

muhsin23739
muhsin23739

No one here to help me ?

ev.werkz
ev.werkz

same problem:(

1-3 of 3

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