How to show/hide fields inside a repeater with a reactive field in a repeater?
I am using the Standalone Form Builder.
I have to show and hide a
TextInput
within a repeater based on the value selected on a Select
element inside the repeater.
Here is what I have
I am not sure what actually goes inside the visible
method. I am assuming there is a way to get the current item index on the repeater and check for the value. Any advice?13 Replies
I think it's
fn ($get) => $get('./item')
or just `fn ($get) => $get('item')
ok, let me try them.
a related question, is it possible to disable the
Add more Items
based on the value selected inside the repeater?Not sure sorry.
ok
May Be Dan or awcodes may have some idea.
->disableItemCreation(fn () => ... )
this one works
doesnt matter that its inside the repeater
it works outside and inside
fn ($get) => $get('item') === 'item1'
Thank you. BTW, I have been using v3 for a new app and its been great. at times I face some bugs, is there a place I can report them?
I know its still in development, but I like living on the edge and hoping that Livewire v3 is released at Laracon
For Example, here is a one that I am facing. trying to figure out what is causing the issue
nvm, actually I get this error only when I use Octane
we do not have the time to support people who are using it when its not ready 🤷♂️ sorry
no problem, was just curious to help with the new version. Will wait for when it is released. But enjoying the alpha releases though
We are happy for feedback when we'll release a public beta and have some public documentation