AI Component to Clear All / Select All in Checklist collection

There have been several requests for people to find a way to clear a value in multiple rows and several solutions proposed:

Sept 2020 | @Robert_Petitto | The timestamp method with Flashcards βœ… Flashcard: Create and Study Custom Flashcards

Feb 2021 | @Jeff_Hager | The matching values method Reset Multiple Rows At Once

Here is a new method using the AI component in a checklist component collection.

On the left the Glide component and on the right the AI component, both in collections
Ai

In this method, each AI component in the collection listens to a computed single value column for a matching word. If the word is reset then each AI component are asked to set the check to false and if the word is all to true.

The AI component is connected to 5 Columns:

  • Name
  • Price
  • Photo
  • Selected (User specific)
  • Status (the single value column)

Here is the prompt for the AI component:

  1. Create a checkbox component no label binded to Selected with Name, Price and Photo next to the checkbox. Set the component background color opacity to 0 and add a thick border with accent color to the Photo when Selected is true. Photo should always be visible.

  2. When the value of Status changes and is equal to reset, the component should automatically respond to this change and update itself to set Selected value to false.

  3. When the value of Status changes and is equal to all, the component should automatically respond to this change and update itself to set Selected value to true.

Here is the App https://ai-delete-select-all.glide.page (Download Template on the app)

7 Likes

Thanks for sharing! Is the only problem here scaling? I think you have to add a component for each row?

Not sure but I’m guessing the AI component is inside a custom collection configured to full width rather than card.

Yes Nathanael is right, it’s a single ai component used in a custom collection. The only problem I see in scaling is the time needed to reset all rows. If you download the template, you can see that in the reset action I have put a very small wait timer 0.5. This timer should be bigger with the number of rows OR you could just find a condition like a roll up to replace wait action by wait with condition action

Excellent, thanks for the clarification.

I have to start using the custom collection and AI component. I basically never use those, but it seems the combo is very powerful.

Be careful about using them in production though, make sure you always test tied actions in production.

1 Like

What are tied actions?

You can add actions to those components and write a prompt on when you want those actions to be triggered.

They have been working much more reliably recently, but make sure you always test those actions in production.

2 Likes