Repeater::make('second.questions')
->hiddenLabel()
->minItems(1)
->reorderable(false)
->schema([ TextInput::make('question')
->label(__('Question')), Select::make('answers')
->label(__('Followup from answer(s)'))
->options(function (Get $get) {
return $this-> flattenAnswerArray($get('../../../first.answers'), true);
})
//->searchable() ->multiple()
->disableOptionsWhenSelectedInSiblingRepeaterItems()
/->native(false),
]),
Repeater::make('second.questions')
->hiddenLabel()
->minItems(1)
->reorderable(false)
->schema([ TextInput::make('question')
->label(__('Question')), Select::make('answers')
->label(__('Followup from answer(s)'))
->options(function (Get $get) {
return $this-> flattenAnswerArray($get('../../../first.answers'), true);
})
//->searchable() ->multiple()
->disableOptionsWhenSelectedInSiblingRepeaterItems()
/->native(false),
]),