Problems setting up two button states

I need to create two button states. I’m trying to configure the circumstances under which the second state will be visible, but it won’t let me select fields in the collection; it simply won’t show them (photo 1). I’ve already configured one button this way before (photo 2). (I think this is the setting I need, but this button doesn’t respond; it’s always in the same state). I configured this button a long time ago, and I’ve done a lot since then, and only now have I returned to the other buttons. But I checked the connections; this screen is linked to the collection I need. I also tried creating a new button, trying to do it through a new screen, but nothing works. I don’t understand why, since I was able to configure the first button, so what’s wrong now? Maybe I’m missing something? help me please

@olga.solovyeva60
Most probably the problem is that “Watchlist” is an object, “Name” is a string. That’s why your state comparison doesn’t work - you need to compare apples to apples (strings to strings, etc.).

Best,
Victor.

How do I set the conditions correctly? I still can’t figure it out… I tried specifying the conditions as a string with a string, but it doesn’t work. I need the button to be yellow (in state 2) when the given movie is in the user’s “watchlist” collection, and gray (state 1) when it isn’t. The only thing I tried was for the “name” string of the current collection (the one with the movie database) to be equal to or contain the “title” string from the watchlist. But nothing happens

@olga.solovyeva60 what collection is a “Watchlist”- is it an internal Adalo collection? And the “Poiskkino” is an external collection?

Best,
Victor.

Yes, that’s right. A watchlist is a collection of movies the user wants to watch in the future (Adalo’s internal collection). And Poiskkino is an external collection (a movie database connected via the API).

@olga.solovyeva60 well, it is technically not possible to compare object in a Watchlist (in fact it is a relationship with another collection) with a value of a record in an external collection.

Try to do something like Logged-in User → Watchlist → Count, add a filter like “Names” is equal to “Poiskkino → Name”, then the main condition is “is equal” to 0. Maybe it works, maybe not, can’t test right now.

Best,
Victor.

I managed to do this, thank you very much! It doesn’t work with just two states of one button, but it worked when setting the visibility of two buttons