In the 18th and 19th century, dance cards were indeed used to keep track of dance partners, first appearing in Vienna before trending across the rest of Europe and the US. Worth a visit just for the OhCool photos. https://www.messynessychic.com/2021/01/07/the-lost-romance-of-dance-cards/