I would like to know if there is any way to clear the data entered in a field that is in a Pop UP after closing the Pop Up.
I set up a pop up with a global field to enter data and also the "update" and "cancel" button in the Pop Up.
If I click "update" I set up the script to pick the data from global field, go to the related field and update the customer information then it closes the pop up after clearing it.
If I click "cancel" i set up the script to clear the global field and then close the Pop Up.
These two things work perfectly.
Now the problem is if I enter data in the Global field but don't click anything (the "update" or "cancel" button) and just close the pop up or if I click outside and it closes automaticaly, the global field will still have the information.
Do you have any idea on how I could do ?