Skip to main content

Home > blockly > Block > getFieldValue

Block.getFieldValue() method

Returns the language-neutral value of the given field.

Signature:

getFieldValue(name: string): any;

Parameters

ParameterTypeDescription
namestringThe name of the field.

Returns:

any

Value of the field or null if field does not exist.