Hi. I am looking to make a score counter with answers to questions.
I created a form with switch to answer all the questions like it :
I tried changing the field in airtable ( Numbers / Text ) and still no results.
An image will be better :
So if a swith is in values=True. set some points)
Add points to get a score.
Update value in airtable.
After doing a test:
Can’t understand why it doen’t work !
Thanks for help
To put it simply, the form which is launched when you open the Etape1 screen, All the values of the notes are at 0 because this screen follows the registration.
The variables are previously defined elsewhere.
No switch is ON in the design.
Pict for all programms :
Step 1 : Registration of a candidat
Step 2 :
Screen of detail of the candidats
Screenshot of the airtable after resgistration, before going to the Etape1 screen
I wonder if it’s the fact that it’s switches that don’t cause any problems.
I did a test just asking to add the value to the table, and this works :
And this work too ( but i’ll have many block anywhere ) :
Works too …
He find 2 points… and write 2 points on airtable…
The problem certainly comes from the statue of the switch.
True or False does not seem to be a possible value for the switch. The problem is that there is no other possibility proposed to be able to exploit it as I want to do.
I’m not sure how to help because I don’t know all of the answers to the questions I asked you. But it sounds like you’ve made more progress so that’s good.
In this image:
You are setting Switch3’s value to false and then immediately checking to see if Switch3’s value is true. It never will be! Why are you setting it to false right before the
Are you expecting the
if block to continually check the value of the switch? If so, it won’t… you would need a loop for that.
Are some of the switches in the Etape 1 screen set to true on the Design screen (when the screen opens)? No. all are to false on the Design screen
What is the value of app variable NoteEtape1 at the very end of the when Etape 1 Opens block? Set a label to that variable and then let us know. Value is 0 when Etape 1 open
What is the value of app variable noteglo before you click Button 2? Value is 0 before click Button 2
What is the value of the NoteGlo column in Airtable before you click Button2? Value is 0 before click Button 2
What is the value of app variable ItemClickID? Set a label to that variable and then let us know. variable ItemClickID is the ID of the candidat on airtable. i forgot to send this :
You set the value of Switch3 to false, then immediately check if the value of Switch3 is true. It never will be! Why are you setting it to false right before the if block?
I set it to false to make sure it is false when the page opens. But even without setting it before, it doesn’t work when I change its value while answering the quiz.
Do you expect the if block to constantly check the value of the switch? If so, it won’t… you would need a loop for that.
When I’m on the form, it’s necessarily false since I defined it that way. But changing its value as if to answer “yes” to the question, so its value changes… so I wanted it to add 1 point since if its value = true then it adds 1 point.
So I think after several tests that the values of the switch is not True or False but something else that defines its value. Only, no possibility of knowing it.
It’s only my second days on this website’s programs. I’m a baby here .
To be very clear, the only thing I’m having trouble with is that I can’t collapse this into a single block
If a solution exists, I’m a taker.
Here is a demo project (see the first screen with your username): Thunkable
I provided two methods. If you use Any Component blocks, you can do this with a single block for as many switches as you need.
Ho Thx a lot.
Here, the only thing I was trying to do:
Works Great ! Thank you for your time you took to me. I need to research a bit more to avoid asking unnecessarily. There’s something else I’m looking for, which I’m breaking my head with but I’m not giving up yet
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.