Filament: Confirmation Modal on Create Submit Button

Sdílet
Vložit
  • čas přidán 10. 09. 2024
  • Demonstrating the tip by Leandro Ferreira, expanding with a bit of context.
    Original tweet: x.com/leandroc...
    More Filament examples on our website: filamentexampl...

Komentáře • 14

  • @uncle_ebene
    @uncle_ebene Před měsícem +1

    Is this possible on a Wizard Create Page, as I have tried it and it seems not to work

  • @Karen-qd2sf
    @Karen-qd2sf Před 28 dny

    Great video thanks! but i have problems whit validations. I need the modal opens only if the validations are correct.
    I mean, that validations runs in the first create buttom (in the form buttom, not in the modal buttom)
    can someone help me? thank you!!

  • @Mr.Error__
    @Mr.Error__ Před 2 měsíci +1

    Is filamentphp projects require powerful server at production to run fast ?

    • @FilamentDaily
      @FilamentDaily  Před 2 měsíci +1

      Depends on your DB size more than filament. Watch my video a couple of days ago about filament with 1M records.

  • @hshxy
    @hshxy Před 2 měsíci

    Is it possible to create nested tables in filament?

    • @FilamentDaily
      @FilamentDaily  Před 2 měsíci

      If you mean Nested Resources, then it's not possible natively but will be in Filament v4.
      We do have a tutorial on how to get SOME of it working, but not fully reliable: laraveldaily.com/post/filament-v3-nested-resources-trait-pages

    • @hshxy
      @hshxy Před 2 měsíci

      @@FilamentDaily I managed to get it working using a filament page and custom html in the blade file. Nice to know that filament provides this flexibility.
      Any ideas when filament version 4 beta release will be out?

    • @FilamentDaily
      @FilamentDaily  Před 2 měsíci

      They say some time later in 2024. No specific date.

  • @filamentbr
    @filamentbr Před 2 měsíci

    Thank you 😉

  • @adnanyalahow
    @adnanyalahow Před 2 měsíci

    Thanks for sharing this. I would like to ask if this is possible in table action like when there is already a modal form

    • @FilamentDaily
      @FilamentDaily  Před 2 měsíci +1

      Not sure, I haven't seen it done that way

    • @krekas
      @krekas Před 2 měsíci

      It should be possible, but it would be faster to test yourself than ask

    • @adnanyalahow
      @adnanyalahow Před 2 měsíci

      @@FilamentDaily I just realized that form validation comes after confirmation modal is confirmed instead of before modal pops up. Can I change that and how should I do it? Thanks

    • @FilamentDaily
      @FilamentDaily  Před 2 měsíci +1

      @@adnanyalahow well yes, it's logical. Do you REALLY want to perform the action? If yes, then we validate it on the server. I don't see how (or WHY) to change it.