Depends on group and play style.
If you want to keep this powerful spell from being abused, tell them they must have fought it. Or further limit it to have focus (or material component) of a piece of thing you want to turn into.
If you are open, and the players don't abuse spells such as polymorph, but want flavor, just require them to have knowledge. Knowledge nature, plane, or arcana would work, depending on the monster. DC of something like 15 or 20 + CR.
Technically, you only need to know about a creature to polymorph into it, so this is all really house rule stuff.