Yes, it is mandatory to wear a helmet to circulate in Formentera. Not wearing a helmet or wearing a helmet without fastening it is dangerous, as well as costing you a fine from the Guardia Civil or the local police of Formentera.