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

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?


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,

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