TheRealTeeHill
TheRealTeeHill
FFilament
Created by bottbott on 2/26/2025 in #❓┊help
validationMessages within createOptionsFrom not working as expected
@awcodes I'm chiming in as Bot's colleague... can you point to an example/resource of this for required so we can get an idea of implementation please?
9 replies
FFilament
Created by TheRealTeeHill on 2/11/2025 in #❓┊help
Bulk Action: change "x records selected"
will do, many thanks for your input ❤️
9 replies
FFilament
Created by TheRealTeeHill on 2/11/2025 in #❓┊help
Bulk Action: change "x records selected"
😦 maybe something for future versions? is there a reason why? as most things in Filament are easily customised
9 replies
FFilament
Created by TheRealTeeHill on 2/11/2025 in #❓┊help
Bulk Action: change "x records selected"
@toeknee will this apply to all tables? I'd ideally like it to say "x tickets selected" only on this table but by changing in the language config it will be for all tables?
9 replies
FFilament
Created by TheRealTeeHill on 2/5/2025 in #❓┊help
Scroll to bottom when opening a modal?
I always post solution... grinds my gears to see help posts with OP saying something like "I figured it out" but then not leaving solution! 🥹
9 replies
FFilament
Created by TheRealTeeHill on 1/22/2025 in #❓┊help
Dashboard widgets: drag and drop
I am marking @wint3rshowl's plugin as a solution... I haven't implemented/tested but it seems to be the best starting point available 🙂
11 replies
FFilament
Created by TheRealTeeHill on 2/5/2025 in #❓┊help
Scroll to bottom when opening a modal?
@toeknee spot on, I fudged this together and it does what I need ✊ ignore the debugging 👏 this is in the blade the modal calls...
<div x-data x-init="$nextTick(() => {
let attempts = 0;

function scrollToBottom() {
let modalContent = document.querySelector('.fi-modal-slide-over-window');

if (modalContent) {
console.log('Modal found:', modalContent);
console.log('Scroll Height:', modalContent.scrollHeight);

modalContent.scrollTo({ top: modalContent.scrollHeight, behavior: 'smooth' });

setTimeout(() => {
console.log('Updated ScrollTop:', modalContent.scrollTop);
}, 50);
} else if (attempts < 10) {
attempts++;
console.warn(`Attempt ${attempts}: Modal not found. Retrying...`);
setTimeout(scrollToBottom, 100);
} else {
console.error('Modal not found after multiple attempts');
}
}

setTimeout(scrollToBottom, 300);
});">
</div>
<div x-data x-init="$nextTick(() => {
let attempts = 0;

function scrollToBottom() {
let modalContent = document.querySelector('.fi-modal-slide-over-window');

if (modalContent) {
console.log('Modal found:', modalContent);
console.log('Scroll Height:', modalContent.scrollHeight);

modalContent.scrollTo({ top: modalContent.scrollHeight, behavior: 'smooth' });

setTimeout(() => {
console.log('Updated ScrollTop:', modalContent.scrollTop);
}, 50);
} else if (attempts < 10) {
attempts++;
console.warn(`Attempt ${attempts}: Modal not found. Retrying...`);
setTimeout(scrollToBottom, 100);
} else {
console.error('Modal not found after multiple attempts');
}
}

setTimeout(scrollToBottom, 300);
});">
</div>
Cheers, Tee
9 replies
FFilament
Created by TheRealTeeHill on 2/5/2025 in #❓┊help
Scroll to bottom when opening a modal?
cheers @toeknee I will have a look at that and report back 🙂
9 replies
FFilament
Created by TheRealTeeHill on 1/28/2025 in #❓┊help
Clear RichText input after action
I cannot believe how stupidly simple this was to resolve... after 8 hours of smashing my head against a wall yesterday... today I tried this and it worked! :therea54BLITZ:
RichEditor::make('response')
->name('response')
->label('')
->required()
->afterStateUpdated(function ($state, $set) {
session()->put('response', $state);
$set('response', null); // THIS IS THE ANSWER!!!
})
->visible(fn($record) => !TicketService::isTicketClosed($record)),
RichEditor::make('response')
->name('response')
->label('')
->required()
->afterStateUpdated(function ($state, $set) {
session()->put('response', $state);
$set('response', null); // THIS IS THE ANSWER!!!
})
->visible(fn($record) => !TicketService::isTicketClosed($record)),
11 replies
FFilament
Created by TheRealTeeHill on 1/22/2025 in #❓┊help
Dashboard widgets: drag and drop
11 replies
FFilament
Created by TheRealTeeHill on 1/28/2025 in #❓┊help
Clear RichText input after action
I will take a look at modalSubmitAction 👍
11 replies
FFilament
Created by TheRealTeeHill on 1/28/2025 in #❓┊help
Clear RichText input after action
yeah, it already does that, just need to clear the RichText input 🙂
11 replies
FFilament
Created by TheRealTeeHill on 1/28/2025 in #❓┊help
Clear RichText input after action
the code example I gave only shows the "Send" button but there are other buttons such as "Send and close", "Send and pending" so I thought custom action for each?
11 replies
FFilament
Created by TheRealTeeHill on 1/22/2025 in #❓┊help
Dashboard widgets: drag and drop
Thanks for the responses 👍 I will check them out, if I get something working I'll post solution here. Cheers
11 replies
FFilament
Created by TheRealTeeHill on 1/15/2025 in #❓┊help
Is there a threads / conversation plugin?
thanks guys, will check these out ❤️
6 replies
FFilament
Created by TheRealTeeHill on 1/14/2025 in #❓┊help
Sorting resources within a cluster
@Matthew man I must have been being a bit dumb! Of course this is the answer... cheers
5 replies
FFilament
Created by TheRealTeeHill on 1/10/2025 in #❓┊help
Move "Save changes" button to sit between fields
that worked perfectly 🙏 you don't happen to know the right method for cancel?
12 replies
FFilament
Created by TheRealTeeHill on 1/10/2025 in #❓┊help
Move "Save changes" button to sit between fields
No description
12 replies
FFilament
Created by TheRealTeeHill on 1/10/2025 in #❓┊help
Move "Save changes" button to sit between fields
No description
12 replies
FFilament
Created by TheRealTeeHill on 1/10/2025 in #❓┊help
Displaying CheckboxList across multiple Fieldsets using relationship
@Dennis Koch I managed to fudge something together... I won't post the code cos its a mess but if someone did have the same problem I am happy to share it 🙂 I ended up using afterStateUpdated, default and afterStateHydrated to get it going how I wanted... probs a better way but for now I just needed the functionality 👍
5 replies