Two, under one shelf name. Within dish and dishwasher soap, hand dish soap is built to foam, while dishwasher detergent is deliberately low-foaming and formulated for a machine's spray action, and mixing them up matters: hand soap in a dishwasher produces foam that overflows the machine.
On the dishwasher side of dish and dishwasher soap, the formats are pods and tablets, loose powder, gel, and refill pouches. Pods are pre-measured and convenient. Powder lets you scale the amount down for a light load and usually works out cheaper per wash. Gels are gentler on delicate glassware but tend to be less effective on baked-on residue.
It lowers the surface tension of water so it sheets off items rather than beading, which reduces spotting and streaking and helps things dry. The effect is most visible in hard water areas. Some pods include a rinse-aid component, and the machine may still have a separate dispenser worth filling.
There are two different causes. Hard water mineral deposits sit on the surface and can be removed with an acidic rinse. Etching is permanent damage to the glass itself, generally from a combination of soft water, too much detergent and high temperatures, and it cannot be reversed. Working out which one you have is worth doing before changing product.
Dishwasher soap pods are a serious hazard to young children, since the film dissolves against a wet hand or mouth. Keep them in the original closed container, out of sight and reach, and never decant them into anything else. Handle with dry hands, keep the appliance door closed after loading, and contact a poison helpline or doctor immediately if any product is swallowed or gets in an eye.