Shall I report this as a bug or I don't know something?

Here is a situation that seems super simple. Learning Adalo by constructing a simple chat app. The challenge is to split the process between creating a first dialogue between logged in user (me) and a current user. This challenge raised due to difficulties with “sometimes” advanced option of CREATE button. So instead of using “sometimes” option for CREATE button I decided to look for an alternative split way.

Here is an option. Two buttons: “Start chat” and “continue chat” are both placed next to a current user profile avatar. The trick is that those buttons are only visible one by one. If no entries in the “dialogues” database yet for the logged in user-current user couple, then “start chat is visible”. If at least one entry is there, the “start” goes invis, and “continue chat” show up.

To make that happen, and to start with first conditional check, I used following logical condition, same for both buttons:

“START CHAT”
Change visibility - sometimes
Current User - Dialogues - Count
Less than
1

“CONTINUE CHAT”
Change visibility - sometimes
Current User - Dialogues - Count
Is greater than
0

To be sure of the value during the Preview process I created also magix text with same “Current User - Dialogues - Count”, so it prints the value on the same screen

And, in the “Dialogues” database, there is just one entry, being “Rus-M1”. Rus is the logged in user. So there is one entry for M1, and zero entries for M2.

Same count (1 for M1, 0 for M2) displayed during the preview on current user profile screen.

And, most interesting, while the “START CHAT” button shows up for M2, and continue chat button is not visible for the M2, then for the M1 none of the buttons are visible. That makes me feel severe headaches to figure why.

Hi, not sure I have an answer without seeing more of how you’ve set things up but I’m not sure why you need two buttons. When I have a chat screen, I just use “Chat” and then a user can click that to start or continue the chat. It’s the same action. The screen is just a list of messages in the chat. If the chat hasn’t started then the screen is empty except for the input and button to add a chat message. Does that help?

1 Like

Hi Ian,
Briefly, this button is to split between “CREATE” and “UPDATE” actions, because “sometimes” setting could not be set correctly for the “CREATE”.

I agree, I shall take time and effort to prepare better presentation of my question, in order to be clear with it.

Many thanks for your response anyway. I hope I could present my question better in a bit later time.

Cheers :wink:

I wonder if you could solve this by combining two actions. One is Create, other is update. Sometimes I create a record and then update it right after when something needs to be in the record to update another field.

I think some screenshots would help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.