She was voiced by Maya Rudolph, who later played Smiler in the 2017 movie The Emoji Movie released ten years later.
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 desend 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.
She is kind of snarky.