Math on a bubble

Hi,

I’ve tried on my own but didn’t quite manage, so I’ll explain again what I’m currently trying to do, and I’d appreciate your help.

I’ve created a button (“Add purchase details”). When the user clicks on the button, a popup appears where the user fills in transaction details, including an input field for profit at the bottom of the popup.

I want the profit to be automatically calculated when the user enters the following details (Final Amount After Fees, Cost from Supplier), based on the values entered in the respective fields enclosed in parentheses. Additionally, I want to ensure that the user cannot manually edit what is displayed in the profit input field.

Once the user fills in the transaction details, they click on a button I’ve created (“Add a purchase”). This button should display the entered data in a table with all the filled-in items.

This is where I’m stuck for now.

I would appreciate it if you could provide guidance and assist me with this.

1 Like