F
Filament14mo ago
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.
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server