Thanks to Robert Petito’s Beastly video on AI components I’m able to create choice components easily. EXCEPT choice components that support multiple selections.
No matter how i prompt the AI - it wants to store the selected value as a boolean (true) if any item in the list is selected. I give it super specific details to store the selected value from the joinedlist that populates the choices - but to no avail. It always stores true.
the other weirdness is that the list will select every option as selected by clicking on any item. grrrr.
When i remove multi-select, the component operates fine in single selection mode. i have tried prompting the component to store the selected item values as a comma separted array into the target column which is a text field in my users table.
If there is some Glide voodoo that you-do to get around this - me and this app that i gotta provide to my local foodbank client will be very grateful.
cheers
Can you share how you have prompted it?
I would start straight to the point, like telling it to provide a dropdown, multiple choice component that stores values as comma-delimited string.
Then adjust as it goes on. I find prompting it super-specific in human language doesn’t help much, the only time I use a long prompt is when I generate stuff from outside LLMs (say Claude), and paste the result into Glide to give it a head start.
Otherwise I just start straight to the functionality and care about the looks later.
for single selection components i have success using
- create a choice list displayed as radio buttons from the option field and write to order
(this approach is ignored when the choices are multiple)
Here’s what I am trying (all are ignored) for the multiple choice
- write selected option fields separated by commas to order
- write clicked option field values to order
i have tried a zillion versions of the above and all are ignored.
if anybody is able to write multiple values using an AI component let me know.
thanks
Like @ThinhDinh mentioned, I tend to keep my prompts short and only ask for one thing at a time instead of creating wordy prompts with multiple requests.
I’ve also had decent luck being pretty vague in what I’m asking. Seems like it works better sometimes if you are less specific which seems to give the AI a little more freedom to figure it out on it’s own.
Are you specifying radio buttons for your multi select? By nature, radio buttons only allow one selection at a time, whereas checkboxes allow multiple. If you are trying to enforce radio buttons, it might be creating an internal conflict because multi select radio buttons are impossible in the same grouping.
Maybe try asking “overwrite bound column with a comma delimited list of selections”