F
Filament3mo 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
Niels3mo ago
Wouldn't it be this? ->modifyFormFieldUsing(fn (Select $field) => $field->native(false))
toeknee
toeknee3mo 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
Niels3mo ago
No I'm trying to make it not-native (the javascript instead of default browser select field)
toeknee
toeknee3mo ago
Can provide your use case more? I'm not following, are you trying to trigger the fitler outside of the fitler?
toeknee
toeknee3mo 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
Niels3mo ago
Oh I just added this and it's working now
No description
Niels
Niels3mo 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
Niels3mo ago
Result:
No description
toeknee
toeknee3mo ago
Hahaha that’s why I was struggling to understand what you were doing 🤣🤣