--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/773ddec6-e481-4f8d-98b1-fdaf34a2057en%40googlegroups.com.
Given that the field is going to always be invisible, do you really need the field at all? If you just want to serialize and save some data for a block you could just store the data in the block's data property. It will automatically get serialized and deserialized along with the block. You can see the documentation for the data property for blocks here. Note that while that documentation only mentions XML, the data property will also be serialized and deserialized when you use JSON as the serialization format.