ClassesBlockblockly.block_class.getfield_1_methodOn this page blockly > Block > getField Block.getField() method Returns the named field from a block. Signature: getField(name: string): Field | null; Parameters ParameterTypeDescriptionnamestringThe name of the field. Returns: Field | null Named field, or null if field does not exist.