This topic is locked

Refresh Document

6/3/2020 1:08:08 PM
PHPRunner General questions
R
RBrogen author

Hi Everyone,
I have an order form shown in the screenshots below. The issue I have run into is that when someone removes an item in-line that has yet been saved, the Total Sale does not re-calculate because the total field doesn't know there has been a change until either the record is saved and closed or another item is added. The essence of what I need to do is when the user clicks the X to cancel an entry item, it calls a function that I already have created that re-calculates the total and relative fields based on the current list of items. I can't seem to figure out how to call this function because the "After Delete" event on the page isn't triggered because the item isn't a saved item yet. Any thoughts would be greatly appreciated.
Best,

Randy
ORDER FORM WITH NEW ITEM LISTED:


ORDER FORM WITH UNSAVED ITEM DELETED: