Polyphenism

Polyphenism is a kind of polymorphism where different forms of an animal are caused a single genotype. The animal inherits the capability, but the environment determines which form develops. This contrasts with genetic polymorphism, where each morph (form) inherits a slightly different genome.
Polyphenism occurs when the animal inherits a developmental switch. The switch is sensitive to some environmental cue or trigger. For example, the sex of crocodiles is determined by the prevailing temperature. Their gender is a polyphenic trait, and is not determined by the usual sex linkage.
Other examples.
The caste system in insects.
The caste system of social insects is the division of labor between genetically identical individuals. Polyphenism determines whether larvae develop into queens, workers, and in some cases soldiers. In the case of the ant, "P. morrisi", an embryo must develop under certain temperature and photoperiod conditions in order to become a reproductively-active queen. This allows for control of the mating season, but like sex determination, limits the spread of the species into certain climates.
In bees, "royal jelly" provided by worker bees causes a larva to become a queen. Royal jelly is only produced when the queen is aging or has died.
Seasonal changes.
Polyphenic pigmentation is adaptive for species which reproduce several times a year. Different pigment patterns provide camouflage throughout the seasons, and alter heat retention as temperatures change. Because insects cease growth and development after they are adults, their pigment pattern is set in adulthood. In the case of the peppered moth, "Biston betularia", the caterpillars are polyphenic. Their trigger is switched by the colour of the plants they are eating: see "this".