How to use a button to both calculate a value display the value on the same screen?
Question
Application Type
Mobile

I am currently working in a group to calculate the Finnegan score (integer value) of a baby. We already have an expression that will calculate a value. We are trying to use a button as a way to run this expression to calculate a value and have it be displayed on the same screen. How do we go about using a button to calculate an expression, store this answer, and then display the answer?

mvp_badge
MVP

Hi Trent,


On your screen, create a local variable (in my example I called it Result), add an expression to the screen to display the value of that variable.

Then on your button action, you should have an assign setting a value for the variable:



Kind Regards,
João

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.