Conditionally display a section, based on another field's value
How can you conditionally display a section based on another field's value?
6 Replies
Thank you
And a related question
In a infolist
RepeatableEntry
I only want to display when its a certain type
But when I do it this way, I end up with something that look like the screenshot (with empty sections)Is there a better way?
maybe using the same condition in the
Section
?No.
I tried something else too, but still same result (with an empty section).
Below is Filament Resource for Delivery model, infolist function:
PS: Delivery is associated with an Order. Order is associated with a pair of Addresses, like
$delivery->order->addresses