Hi, i have a screen with 4 number input fields. Based on the sum of those 4 inputs, i want that to equal the number of input fields displayed in the next screen.
I am new to Adalo and can’t figure it out. Help! Please!!
Hi, i have a screen with 4 number input fields. Based on the sum of those 4 inputs, i want that to equal the number of input fields displayed in the next screen.
I am new to Adalo and can’t figure it out. Help! Please!!
You need a place to store the calculated sum. The easiest way for this specific use case is often directly on the screen.
Go to Screen 1 in Adalo.
In the left sidebar, click on “Add Component.”
Search for “Form & Inputs” and drag a “Text Input” component onto the screen. (We’ll hide this later, it’s just for holding the value).
Select this new Text Input.
In the right panel, under “DATA,” change the “Default Value” to “Magic Text.”
Select “User” (or whatever collection your current user is from, if you’re tracking users).
Then, you’ll need to create a new property for the user (or another collection that makes sense for your app) to store this sum. Let’s call it currentSum.
Go to “Database” in the left sidebar.
Find the collection you want to add this property to (e.g., “Users”).
Click “Add Property.”
Choose “Number” as the type.
Name it currentSum.
Click “Done.”
Now, back on Screen 1, select your temporary Text Input.
Set its “Default Value” to “Magic Text” → “Logged in User” →
Hi @jezzyg,
Welcome to the forum!
Just to clarify: if user enters figures in input fields, say, 100, 200, 300 and 400, you would like to display 1000 input fields on the next screen (100+200+300+400)?
Best,
Victor.
Thank you!
I have a Collection called Events and a Property called Total_goals
On the Predictions 1 I have 4 input boxes and I want to total those 4 inputs and write that number to the total_goals property.
So I have added the text input component as you direct but when I click the magic text button, I’m getting lost. I need to :
Not quite. If a user enters 1,0,1,2 then I’m looking to add 4 input fields o the next screen.
@jezzyg but what should happen if a user enters, say, 999, 1224006, 511 and 4? There is no restriction mentioned in your initial post.
What I am trying to explain to you is that your requirement does not fully describe the case and your goal. If you explain what would you like to achieve in general, you may receive more meaningful advice.
Or you can continue conversation with a bot, but I doubt that it’ll bring any results
Best,
Victor.