select2_from_ajax with grouping #1417
Replies: 1 comment
-
|
Based on the available knowledge sources:
Summary:
If you need further guidance on how to implement such a custom field, let me know! ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Github Issue (closed): [Feature Request] Ability to populate a select2_from_ajax filter using the Fetch operation |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a Backpack 6.7.29 with Pro running on my Laravel 10.
In my use case I have a Event and a Location model. An "Event" is meant to be something like an exhibition or a concert. The Location, of course, where this Event takes place.
When creating an Event I use the
select2_from_ajaxfield to assign a Location. To provide a better UX to my users I want to show "recently used locations" within the select. Then the user wouldn't have to always search for the same location name over and over againand can re-use from the ones he already used.My current fetch method for this field looks like this:
My questions:
select2_from_ajaxfield?optgroup?If this is not possible with the given fields from Backpack I think must build a custom field then?
I'm glad for every help here :)
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions