asynchronous request in select
Good afternoon, I have two select fields. The thing is that when selecting the first select field, I need to load the filtered data based on the first select into the second select. How can you do this in Twill with minimal effort?
I
ifox•58d ago
Hi, you need to use more than 2 select fields to do this. For each of the values in your first select, you would need a connected select field.
T
trompix•54d ago
But what if in my first select, for example, records from the category table in the database are displayed and there are, for example, 100 records and not specific ones? and over time there will be more of them?
T
trompix•54d ago
I found how to solve something similar for the example with the select field (it’s awkward and ugly, but for now it’ll do for testing), but I don’t understand how to do this with multi_select. Maybe somehow you can request data asynchronously?
I
ifox•39d ago
You'd need to create a field for all combination of values in your first multiselect, which obviously doesn't scale. We don't have a native way to asynchronously refresh the field, but you can create your own field, and use livewire, for example. Another option would be to use connected browser fields for this use case, because the browser field is fetching records asynchronously when the modal is opened, and it can take parameters from another browser field
1.4KMembers
View on DiscordWant results from more Discord servers?
More PostsUpgraded from Twill 2.13 to 3.2, frontend error when saving a module that uses 'editInModal' => trueI upgraded from Twill 2.13 to 3.2. When saving a module that is created/edited via a modal (using $iUpgraded from Twill 2.13 to 3.2, raw HTML links visible in browserHi,
I upgraded from Twill 2.13 to 3.2. I am now seeing raw HTML edit links in my "Projecttags" browHow to use Conditional Fields in ControllerI want to add a Author select fields when shared_by === user
` $form->add(
Radios::maBlock editor preview Vite issue?Hey all, I'm getting this when I preview a page module block editor in the admin:Upgrading from 2.0 to 3.0 -Block Editor $groups issueHello! I'm getting a strange error (see picture). I've tried clearing all caches. It only happens onInline Repeater get's overridden by another InlineRepeater with the same name in another block.The code in first image get's overriden by the code in the second image in admin panel.
Normally, whTable custom columnHello! I created module Product and relationship with module Category. I would like to display categMulti select selected issueIn twill3 I created 2 CRUD, ImportedItem and ItemTypes. I used Multiselect for selecting ItemTypes.
Upgrading from 2.0 to 3.0 - routing issuesHello! I'm currently updating twill to 3.0 from 2.0, and I'm having some issues with routes.
I'm getDisabled defaults in controller based on user RoleGroupI want to disable, create, edit or delete actions according to user RoleGroup or there is another wa