Thank you for your query.
this is encropresis. This is a pervasive disorder.Make sure he does not have severe constipation
If this condition persists consult a child psychologist
If you have any further queries you are free to consult me.
Hope this answers your query.
Wishing your child a speedy recovery.
Have a nice day.