Skip to main content

Home > blockly > inputs > Input > removeField

inputs.Input.removeField() method

Remove a field from this input.

Signature:

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

Parameters

ParameterTypeDescription
namestringThe name of the field.
opt_quietboolean(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.