I dreamed that my son was trapped in school and couldn't go home.

This is a good thing. According to this dream, your son should study in general and have little interest in learning. Being stuck in school symbolizes that your son may have a girl at school to attract his attention. If he is in the graduation season, your son should try to be admitted to the same school as that girl. If it is not graduation season, you should enlighten him.