Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
アンケートのフォームフロー
<?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