Referencing a field
I want to dynamically set a field's columnSpan. I know that's doable because the columnSpan accepts a closure but I need to reference another field to figure out the column span.
ie. set
columnSpan
is 2 if field 1
is visible otherwise set it to 13 Replies
nvm I think I figured it out, I'll try out the solution and if it works I'll share it here
Solution
->columnSpan(fn ($get) => $get('field1') == 1 ? 2 : 1)
was about to mark as solved, this is what I came up with