Can anybody help me…i want to link each icon button to firebase…this to help me do statistic how many person press a button
What I would do is set up 6 labels to represent 6 options. And recall previous firebase values to these labels (last step)
Then use firebase tag such as app user id / work schedule or if you don’t have firebase auth then just use tag “work schedule clicks” or something and same goes for other options. Then ever time a button is clicked you use addition math block
Which is “1+1” but you replace 1 with get label text “work schedule click” (this will be your firebase value) and then I would add an if statement which says if label 1 is undefined set it to 0 because when there is no value and you recall database values to the labels it will say undefined
Hey @ariefakmal2605i4w is there any reason in particular why you have to use Firebase for this task?
I agree with @domhnallohanlon airtable would be much more suitable you can just use “ update row number”
@domhnallohanlon i use firebase for statistic,when user click a button, it count as one…so end of the month i know how many user are click the button…this for my pilot study…
Owhh… I am confuse to use airtable or firebase to count usage daily… i am new on using block…
That’s good but you need data not just functionality using variables will only increase the amount in app you won’t be able to see it personally unless labels are visible then anyone whose using your app can use it
I’ll tell you very easy step and don’t worry you don’t have to remove anything.
Go to airtable. Make 6 rows
For example product 1 row 1
Then update this row number when product 1 is clicked. You will find the update row number block in airtable blocks.