The eggs hatch when the nest is flooded .
The tadpoles may complete their development in the foam if flooding does not occur .
The eggs hatch when the nest is flooded , or the tadpoles may complete their development in the foam if flooding does not occur .