Atreides
Get current item position in repeater or uuid in repeater mutateRelationshipDataBeforeCreateUsing
@morawcik I dont know of a possibility, but maybe this could help you: https://discord.com/channels/883083792112300104/1147995447332438077
4 replies
dynamic repeater fields names
@jamesro I think this could be, what you are searching for: https://discord.com/channels/883083792112300104/1147995447332438077
4 replies
Set default value for colorpicker.
Yeah, if you need a "default" on existing one, just work with afterStateHydrated, and check if its already set, otherwise set a default. Like this:
->afterStateHydrated(function (Set $set, YourModel $yourModel) { $set('your_model_attr', $yourModel->your_model_attr ?? "default"); })
6 replies
Filament Wizard Step change from visible to hidden error
Fixed this with a workaround, where i hide the last step via
setTimeout(function () {document.getElementById("checkout").classList.add("hidden"); }, 0);
when the hidden step gets visible4 replies
how to show a modal when press next on wizard step
To open a modal in filament form take a look at answer from mickey pearson in this stack overflow thread: https://stackoverflow.com/questions/77869848/opening-a-modal-in-filament-php
6 replies
how to show a modal when press next on wizard step
i think you should try to work with visible() on the wizard steps, and change the condition-outcome by your modal. But its not that easy. Especially because I have currently a problem, that the Wizard struggles with steps becoming visible from hidden (opposite is okay).
6 replies