Depending on the situation and age of your child, you may be able to offer your child a toy or some food to help calm them down in the playard.
You can also distract them with music, mobiles, and other forms of entertainment. If your child doesn't calm down, tries to climb out of the playard, or engages in unsafe behaviors, you may need to remove them from the playard, calm and soothe them, and return them to it later.