Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Function: hasOtherInstanceOfType()

hasOtherInstanceOfType(root, component): boolean

Returns true when another component of the same type already exists under the root.

Parameters​

root​

ComponentData

the form component tree root.

component​

ComponentData

the component being checked.

Returns​

boolean

true when another instance of the same type exists, false otherwise.

Stay in the know
Quickly Build Drag-and-Drop Forms
Star us on GitHub