Thank you for your query,
Your child seems to have functional constipation
and it is commonly seen in children around this age group.
Add dietary fiber
rich food to his diet on regular daily basis.
Dietary fiber present in fruits, vegetables and leafy vegetables and it make stool bulky and soft by retaining water in it and for easy passage of stool.
Give plenty of oral fluids.
Encourage him to sit in the toilet for 10 minutes every day.
Continue the medication if required as per the prescribed dose.
Hope I have answered your query.