F
Filament16mo ago
Masea

Fields with same name within different section fields

Hi. I have different sections that are visible depending on another select field. However these sections contain fields that share the same name with other fields that are inside other sections. This results in several livewire and alpine errors in my console. I tried to give the fields that share the same name different ids but no help. What I want to achieve is that, create different type of "questions" which will have different type of answering types. Any idea how can i achieve this? Thanks
No description
5 Replies
Masea
MaseaOP16mo ago
This is the error I am getting when I open a modal that edits the record that has "multiple choice" type selected in which I can't see the currently selected "correct_options" as well
No description
Masea
MaseaOP16mo ago
Saving the record using the same edit modal, my correct_options will look like this:
No description
Masea
MaseaOP16mo ago
Which tells me the fields are conflicting, but the question is how can i avoid the conflict?
Patrick Boivin
Patrick Boivin16mo ago
Just a thought: can you give each Section its own ->statePath() to avoid conflicts?
Masea
MaseaOP16mo ago
What are statePaths? Never heard of that. Anywhere I can find info related?
Want results from more Discord servers?
Add your server