Get path for builder/block input
I have a builder on a page and I can therefore generate several blocks which each contain an input text with the name XXX. But once the blocks are generated, all the input elements have the same name (XXX). I'm looking for ways to target them one by one, for example to add content.
3 Replies
To simplify let's admit that I have a builder like this on my page :
Now i add 2 same block on my page so i have richtext 1 et richtext 2 like in the img
Now I have a function that generates text and I would like to place this text inside one of these fields. Usually it would be in "content".
This fonction is called via an action like that
My probleme is to the last line. I don't know how to target the input of CustomRichEditor::make('name') because there is 2 on the same page (can have many more).
GitHub
Get path for builder/block input · filamentphp filament · Discussio...
I have a builder on a page and I can therefore generate several blocks which each contain an input text with the name XXX. But once the blocks are generated, all the input elements have the same na...
thanks you i reply on GH