Great Combo between multi-select Choice component and Custom ai component

Hey Glide Community! :wave:

Discover a powerful and simple combination of the classic multi-select Choice component and the Custom AI component.

How It Works:

  1. Choice Component:
  • Data Fields:
  1. Custom AI Component:
[
  {"id":"0hMpgsHIRyu.zstJUSq.wQ","name":"Okra","genus":"Abelmoschus","species":"esculentus"},
  {"id":"KxlHv3oZSnGYvISfSuNREg","name":"Chenille Copperleaf","genus":"Acalypha","species":"hispida"},
  ...
]
  • It shows tags for options whose IDs are included in choiceValues.
  • Each tag includes a cross button to remove the corresponding ID from choiceValues.

Custom AI Prompt:

optionsArray is a string array structured like this:
[
  {"id":"0hMpgsHIRyu.zstJUSq.wQ","name":"Okra","genus":"Abelmoschus","species":"esculentus"},
  {"id":"KxlHv3oZSnGYvISfSuNREg","name":"Chenille Copperleaf","genus":"Acalypha","species":"hispida"},
  ...
]
choiceValues is a comma-separated string of IDs. Show in a tag, with a cross button, the label for which the ID is included in choiceValues. When the user clicks on the button, remove the ID from choiceValues.

Try it out: https://choice-customcomponent.glide.page/

3 Likes

I like it! Good job!

I created a similar version that focuses solely on the AI component and uses JSON. I like yours because it allows the use of native columns.


Take a look:

1 Like

Yes that’s great if you don’t want to use the choice component.

2 Likes

Sweet! Thanks for sharing.

2 Likes

Thanks, since the custom component problem, I was thinking that combining both glide and custom component could be a solution.

2 Likes

Nice job and solution and thanks for instructions :flexed_biceps:

2 Likes

Thank you so much for your comments!

1 Like