I am using dialog templates more and more for quick data capture, It would be really useful if they could have a 'DialogCloseRequest(Result As Int) As ResumableSub' event similar to the B4xPage implementation to allow validation of data before allowing a close. I am currently disabling the Positive result button until data is correct, but it would make a smoother implementation.