"Close Window has been cancelled" script pop. Need help
In my modal window I have a script with a field inside that is required to have data. If there is no data a pop up appears asking user to input the data, which is what I want, but when you click ok on that another pop up appears with, "Close Window has been cancelled. Do you still want to continue with this script?" If the user clicks Cancel they have to fill in the empty field. If they click Continue it takes them out of that modal window and the field that is required to have data is skipped. I don't want the, "Close Window has been cancelled..." pop up to appear. Here is what the script for this modal window looks like...