Getting a few values , make a calculation and show an output

Hey All,
This might be very basic, but I couldn’t figure out how to do it. I’d like the user to insert a few values , which I figured out how. What I didn’t figure out is how to take those inputs, make the calculation I’d like with them and then show it to the user after clicking a button. Can anyone guide me?

Thanks,

Shlomo

Was hoping somebody can address that.
Thanks!

If you start to build something in the forum app it’ll be easier for others to help you. https://bubble.io/page?type=page&name=index&id=forumapp3&tab=tabs-1

1 Like

Hi - Not sure what kind of calculations you’re trying to make, but you could do this using a custom state.


For example:


1) Create two input boxes with the content type set to Integer

2) Create a group Called "Answer" with a text field inside. *
3) Create a button. Edit the button's workflow to Element Actions **->** Set state **->** Group Answer **->** Create custom state called "answer" **->** Value="Input A's value + Input B's value" *
4) Edit your answer text field so the displayed text is Insert dynamic data **->** Group Answer's answer. *

That's it!

Chris

6 Likes

Thanks, this is what I needed!