© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Connor

Preview HTML from first wizard step?

I have a two step wizard which starts with a email resource,

is it possible for my second step, I take the data from step one and create a preview of what the email will look like so it can be proof read to and make sure the correct template is being used?

    protected function getSteps(): array
    {
        return [
            Step::make('Mail Template')
                ->schema([
                    Section::make()->schema(EmailResource::getFormSchema())->columns(),
                ]),

            Step::make('Mail Preview')

                ->schema([
                    Section::make()->schema(EmailResource::getFormSchema('preview')),
                ]),
        ];
    }
    protected function getSteps(): array
    {
        return [
            Step::make('Mail Template')
                ->schema([
                    Section::make()->schema(EmailResource::getFormSchema())->columns(),
                ]),

            Step::make('Mail Preview')

                ->schema([
                    Section::make()->schema(EmailResource::getFormSchema('preview')),
                ]),
        ];
    }


The idea is that if I change the type, I can change the template that will preview in the second wizard step.
image.png
image.png
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

wizard step create record on first step
FilamentFFilament / ❓┊help
3y ago
wizard step sharing from model
FilamentFFilament / ❓┊help
2y ago
wizard step label
FilamentFFilament / ❓┊help
8mo ago
Polling step wizard
FilamentFFilament / ❓┊help
16mo ago