My Papillon Wont Potty Train? What Do I Have To Do?

i have a 6mths papillon ive had her since she was 3mnths and i take her outside to go potty but right wen she comes inside she will use tha restroom idk wat to do? my parents get mad alot for it! she is a great dog she is very crazy & loves to run &play i wouldnt trade her for any dog i just dnt know wat to do anymore & also if i open the front door she will run off but if i open da back she will just run around but if she finds a whole she’ll run off do u know how i can stop her from running & hope she’ll just walk next to me. if yha can answer both of my questions dat will be great!