@twister ,
I am assuming these are in cards in a form?
On the OnChange on the Invoice Amount Text Box, put
UpdateContext({varAmount:Value(Self.Text)});
Reset(YourPaymentAmountTextBoxName)
Make the Default of the Payment Amount Text Box
If(
varAmount>0,
varAmount,
Parent.Default
)
If these are not on a form, you can just make it varAmount and you will not need the Reset
Lastly on the end of your Save code
UpdateContext({varAmount:0});
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.