Initial Content Adapts Based off Other Inputs

Hi.

I’ve got these three fields. I would like the Initial Conent to be dynamic based off the other inputs.

So if:

  • user enters Gallons and Total cost, it would auto fill Cost/Gallon with Total Cost divided by Gallons
  • user enters Gallons and Price/Gallon, it would auto fill total cost as gallons * price/gallon
  • user enters total cost and price/gallon, it would auto fill gallons as total cost divided by price / gallon

I would like for these to happen on the front end, visibly, and not in a data base behind the scenes.

Thank you!