I agree, if it's a recent thing, it could be something medical. Also, changes in routine can cause setbacks in potty training, it's actually quite common. So, he had your attention at home for a long time, now you are gone. Go back to the basics of potty training, as long as it's nothing medical.