Help Building A Number Pad for Calculator

Can someone help with how to build out a number pad? On the front end, I’ve already set up and styled a Text element and 12 Buttons for 0-9, a decimal, and a backspace.

On the backend, I’m trying to figure out how to get it to display the typed digits in the text element (like a calculator or cash app).

My app will need users to input an amount that I can then do calculations on and use later in an action. Any ideas for how to make this work?

You might just want to use a plugin instead…building a calculator is complicated

This topic was automatically closed after 70 days. New replies are no longer allowed.