Sorry I’m new to Glide, there some way can the button disappear after set the 2 column? like choose 2 product to compare and the button will disappear
What is the action on the button?
Essentially you need to use the button actions to change a value in the database that can subsequently be used to drive a visibility condition or condition on the button action.
So once two rows have been added, you want all the buttons to disappear?
Yes because i just want to compare only 2 not more than that
Okay, so what you can do is create a rollup column that counts the number of rows in your Compare Product table. Then set a visibility condition on your buttons such that they are only visible when the count is less than two.
That said, I’m fairly confident that this isn’t the right solution for your use case. For example, what do you expect to happen if multiple people are doing this at the same time? And what if a user changes their mind after making a selection? Or wants to make another comparison?
What I’m getting at here is that adding rows to a table is probably not the best approach. But I’ve just answered your question directly.
Sorry, I’ have try and there some problem
- the source is Spec table not Compare table
- i just add the action button in the collection with source from Spec and add row to Compare
So the visible condition is can not use is this case
and I want to know if have multiple user in same time have the table will add from all user or only one by one
I think if you look into using a Helper table in combination with User Specific Columns you would be able to build a solution that works better than this. Perhaps these resources can help you:
I agree, I would just use a helper table with two choice components writing to two user-specific columns, and do lookups for comparison, perhaps.