Skip to main content

blockly > inputs > Input > removeField

inputs.Input.removeField() method

Remove a field from this input.

Signature:

removeField(name: string, opt_quiet?: boolean): boolean;

Parameters

Parameter

Type

Description

name

string

The name of the field.

opt_quiet

boolean

(Optional) True to prevent an error if field is not present.

Returns:

boolean

True if operation succeeds, false if field is not present and opt_quiet is true.

Exceptions

{Error} if the field is not present and opt_quiet is false.