She was voiced by Maya Rudolph, who later played Smiler in the 2017 movie The Emoji Movie.
Her name was seen at the gate at her tower home within the kingdom of Far Far Away in Shrek 2, although she wasn't seen.
Shrek the Third
She was first seen a King Harold's funeral. She was later seen at Fiona's baby shower. When Prince Charming invaded Far Far Away with his army of villains, Rapunzel betrayed all the other princesses and brought them to him so she can be with him.
She then put on a play with Charming, in which he was planning to kill Shrek in front of everyone in the kingdom. When Shrek's best friends came to rescue him, Gingerbread Man used Rapunzel's hair to descend from the tower. This makes her hair fall off her head, revealed to be a wig.
Shocked and humiliated, Rapunzel abandoned Charming and ran away never to be seen again.
She is somewhat snarky with this being her only notable personality trait.