Utils
property on the Formio
object.eachComponent(components, fn, [includeAll])
fn(component)
for each component in components
, accounting for nested layout components. (Does not call for layout components themselves, unless includeAll is true).getComponent(components, key)
key
or undefined if not found.findComponents(components, query)
searchComponents(components, query)
matchComponent
.matchComponent(component, query)
flattenComponents(components, includeAll)
components
and each key points to the corresponding component. This includes nested components as well. Pass true for includeAll if you want to include layout components.isLayoutComponent(component)
getValue(submission, key)
parseFloat(value)
formatAsCurrency(value)
escapeRegExCharacters(value)
boolValue(value)
isMongoId(text)
checkCondition(component, row, data, form, instance)
unescapeHTML(str)
convertStringToHTMLElement(str, selector)
guid()
isValidDate(date)
formatDate(value, format, timezone, flatPickrInputFormat)
getBrowserInfo()
isInputComponent(componentJson)