Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Created December 2, 2020 22:41
Show Gist options
  • Save kurozumi/a363f7524d00607cb1220915ae95a8ed to your computer and use it in GitHub Desktop.
Save kurozumi/a363f7524d00607cb1220915ae95a8ed to your computer and use it in GitHub Desktop.
アンケートのフォームフロー
<?php
namespace Customize\Form\FormFlow;
use Craue\FormFlowBundle\Form\FormFlow;
use Customize\Form\CreateQuestionnaire;
class QuestionnaireFlow extends FormFlow
{
protected function loadStepsConfig()
{
return
[
[
'label' => trans('性別'),
'form_type' => CreateQuestionnaire::class,
'form_options' => [
'validation_groups' => ['step1']
]
],
[
'label' => trans('年代'),
'form_type' => CreateQuestionnaire::class,
'form_options' => [
'validation_groups' => ['step2']
]
],
[
'label' => trans('ご意見・ご要望'),
'form_type' => CreateQuestionnaire::class,
],
[
'label' => trans('確認')
]
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment