Lynx

genui / openui / useGetFieldValue

useGetFieldValue()

function useGetFieldValue(): (formName: undefined | string, name: string) => any

Get a form field value from the form state context.

Returns

Function

Parameters

ParameterType
formNameundefined | string
namestring

Returns

any

Example

const getFieldValue = useGetFieldValue();
const name = getFieldValue("contactForm", "name");

Defined in

@lynx-js/genui/openui/src/core/context.tsx:141

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.