© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
1 reply
bouly

Trigger next wizard step

Hello,

I am looking for a clean way to automatically trigger the next button on
StateUpdate
StateUpdate
while using Wizard.

I did this, but it is not clean :
ToggleButtons::make('gender')
  ->options(...)
  ->reactive()
  ->required()
  ->inline()
  ->extraAttributes([
      'x-on:change' => "setTimeout(() => { 
          const footerDivs = document.querySelectorAll('.fi-sc-wizard-footer > div'); 
          const nextDiv = Array.from(footerDivs).find(div => 
              div.getAttribute('x-on:click') && 
              div.getAttribute('x-on:click').includes('requestNextStep') &&
              !div.classList.contains('fi-hidden')
          ); 
          if (nextDiv) nextDiv.click(); 
      }, 200)"
  ]),
]),
ToggleButtons::make('gender')
  ->options(...)
  ->reactive()
  ->required()
  ->inline()
  ->extraAttributes([
      'x-on:change' => "setTimeout(() => { 
          const footerDivs = document.querySelectorAll('.fi-sc-wizard-footer > div'); 
          const nextDiv = Array.from(footerDivs).find(div => 
              div.getAttribute('x-on:click') && 
              div.getAttribute('x-on:click').includes('requestNextStep') &&
              !div.classList.contains('fi-hidden')
          ); 
          if (nextDiv) nextDiv.click(); 
      }, 200)"
  ]),
]),


Many people try to do this, but I haven't found a cleaner solution.

Do you have any ideas?
Thanks.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Trigger Wizard next step via Action
FilamentFFilament / ❓┊help
2y ago
Wizard Trigger Next Steps From Notification.
FilamentFFilament / ❓┊help
12mo ago
How to trigger form wizard next step via javascript?
FilamentFFilament / ❓┊help
12mo ago
Next Step action in Wizard
FilamentFFilament / ❓┊help
2y ago