Need help potty training

My daughter goes to the bathroom very easily when she DOES NOT have a pamper on . She will walk to the pot on her own , sit and pee. But she will not do it if she have pampers/ underwear on . Is there anything I can do to help her wanna take off her pamper and pee