You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Post model which can be of 2 types: regular and poll. A Post model of type poll will be related to a Poll model in a 1-1 manner. Among all other attributes, a Poll model has selection_mode and max_selected_count. With all of these said, here is my issue:
I'm using yassipad/laravel-nova-nested-form to display create/update form of a Poll model inside create/update form its related Post. Also, I wrap max_selection_count field of Poll inside a ConditionalContainer field to make it visible only if selection_mode is equal to multiple.
Everything works fine in isolation, but when it comes to max_selection_count field inside the Post create/update page, it does not work as expected. Inside Post form and when type is poll, no matter what option I choose for selection_mode, max_selection_count will not appear.
Hey
I have a
Post
model which can be of 2 types:regular
andpoll
. APost
model of typepoll
will be related to aPoll
model in a 1-1 manner. Among all other attributes, aPoll
model hasselection_mode
andmax_selected_count
. With all of these said, here is my issue:I'm using
yassipad/laravel-nova-nested-form
to display create/update form of aPoll
model inside create/update form its relatedPost
. Also, I wrapmax_selection_count
field ofPoll
inside aConditionalContainer
field to make it visible only ifselection_mode
is equal tomultiple
.Everything works fine in isolation, but when it comes to
max_selection_count
field inside thePost
create/update page, it does not work as expected. InsidePost
form and whentype
ispoll
, no matter what option I choose forselection_mode
,max_selection_count
will not appear.Here is my code snippets:
The text was updated successfully, but these errors were encountered: