Jump to content


marceloje

Member Since 19 Nov 2020
Offline Last Active Dec 03 2020 04:43 PM
-----

Posts I've Made

In Topic: Set Relation (dropdown to show only available products)

19 November 2020 - 08:28 PM

Hi,

 

You can use 4th parameter with where condition:

 

$crud->setRelation('product_id','products','product_name', ['available' => 'yes']); 

 

Check documentation:

https://www.groceryc...st/setRelation/

 

Regards