F
Filament9mo ago
Niels

Applying native(false) to SoftDelete filter select field

Is this easy to do? What would be the best way?
No description
11 Replies
Niels
NielsOP9mo ago
Wouldn't it be this? ->modifyFormFieldUsing(fn (Select $field) => $field->native(false))
toeknee
toeknee9mo ago
That's modifing the field, I don't think that'll cause it to apply. what exacrtly are you trying to do? By default he fitler is applied without deleted records. So are you looking for with deleted records?
Niels
NielsOP9mo ago
No I'm trying to make it not-native (the javascript instead of default browser select field)
toeknee
toeknee9mo ago
Can provide your use case more? I'm not following, are you trying to trigger the fitler outside of the fitler?
toeknee
toeknee9mo ago
Sorry, but if you are using a select filter, why not just use the native trashed filter? I'm struggling to understand what you are trying to achieve beyond what is baked in .
Niels
NielsOP9mo ago
Oh I just added this and it's working now
No description
Niels
NielsOP9mo ago
This was a lot of overthinking lol. I thought it was different because it was a filter and not a standard field element
Niels
NielsOP9mo ago
Result:
No description
toeknee
toeknee9mo ago
Hahaha that’s why I was struggling to understand what you were doing 🤣🤣
Want results from more Discord servers?
Add your server