Daughter refuses to go number 2 on toilet

This is kind of embarrassing to write, but my daughter is six and just poops in her underwear. I’ve tried talking to her about it and she just keeps saying she’s afraid of falling in the toilet. It’s gotten to the point her teacher and school nurse are concerned, I actually had a phone conference with them both earlier today. My daughter has had problems with constipation in the past so I thought that was part of it but now I’m not sure. I’ve tried Miralax per her doctor’s recommendation but while it helps her poop easier, she still refuses to use the toilet (she pees on the toilet just fine.) Her school nurse suggested taking her to a GI specialist however I’m starting to think her problem may be more psychological than medical. She knows when she needs to go, but she’ll just run to a corner or under a table, she won’t even try to go on the toilet.

I feel so lost and helpless. It’s also aggravating and I’m trying not to lose my patience but it’s really difficult. I made another doctors appointment for Monday but I’m not sure if it’ll be helpful but maybe her doctor will have some ideas.

Thank you for reading this. I’m not sure what I’m asking, if anything at all, but I just needed to let it out.