A system for depositing foodstuff material in the fluid state on a foodstuff product, comprising: - a conveying line for feeding a plurality of foodstuff products in a direction of advance; - at least one unit for dispensing the fluid foodstuff material on the foodstuff products that advance on the conveying line, where the dispensing unit comprises a plurality of rows of nozzles arranged in a direction transverse to the direction of advance; and - a control unit for controlling the dispensing unit, wherein said dispensing unit comprises a plurality of valve devices associated to the nozzles of the plurality of rows of nozzles and designed to control the flow of the fluid foodstuff material through the nozzles, each valve device comprising: - an open/close member; - a solenoid; and - a magnetic element operatively connected to the open/close member and mobile between a first position in which the open/close member closes the respective nozzle, preventing dispensing of the fluid foodstuff material therethrough, and a second position in which a passage is opened through the nozzle for dispensing of the fluid foodstuff material, wherein movement of the open/close member from the first position to the second position or vice versa is driven by the magnetic element as a result of an electromagnetic interaction with said solenoid, and wherein each valve device is housed within a seat that extends until it gives out into a duct for supply of the fluid foodstuff product to the nozzle, and wherein the open/close member is constituted by an elastic body that closes said seat with respect to the supply duct and that comprises an open/close portion operatively connected to the magnetic element and mobile together therewith. - a conveying line for feeding a plurality of foodstuff products in a direction of advance; - at least one unit for dispensing the fluid foodstuff material on the foodstuff products that advance on the conveying line, where the dispensing unit comprises a plurality of rows of nozzles arranged in a direction transverse to the direction of advance; and - a control unit for controlling the dispensing unit, wherein said dispensing unit comprises a plurality of valve devices associated to the nozzles of the plurality of rows of nozzles and designed to control the flow of the fluid foodstuff material through the nozzles, each valve device comprising: - an open/close member; - a solenoid; and - a magnetic element operatively connected to the open/close member and mobile between a first position in which the open/close member closes the respective nozzle, preventing dispensing of the fluid foodstuff material therethrough, and a second position in which a passage is opened through the nozzle for dispensing of the fluid foodstuff material, - an open/close member; - a solenoid; and - a magnetic element operatively connected to the open/close member and mobile between a first position in which the open/close member closes the respective nozzle, preventing dispensing of the fluid foodstuff material therethrough, and a second position in which a passage is opened through the nozzle for dispensing of the fluid foodstuff material, wherein movement of the open/close member from the first position to the second position or vice versa is driven by the magnetic element as a result of an electromagnetic interaction with said solenoid, and wherein each valve device is housed within a seat that extends until it gives out into a duct for supply of the fluid foodstuff product to the nozzle, and wherein the open/close member is constituted by an elastic body that closes said seat with respect to the supply duct and that comprises an open/close portion operatively connected to the magnetic element and mobile together therewith.