For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/genui/openui/functions/useGetFieldValue.md.
Lynx
  • English
  • 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.