Hello ..
Constipation in a toddler is a diet related issue. You need proper counseling regarding what to add and remove from diet for constipation to resolve.
Medicines are only a temporary management. Unless diet ice corrected, there is risk of recurrent constipation on leaving medication.
For now, if you need laxative, can use muout powder but the dose is weight based so you need to tell what the wieght is.
Next Steps
take an online consult for dietary counseling and to tell about weight and dose required for the weight