I have read that dogs who get scolded for going potty inside may eventually hide inside when they go to the bathroom. They are smart, but they don't understand they are being punished for going potty inside- they believe they are being punished for going potty.
We used the bell method. Jingle the bell every time he goes outside and no playing outside until he goes to the bathroom. This way he learned business first then fun.
Sent from Petguide.com Free App