• Takes a form element's id, the form elements and the submission data to return a value from the submission.

    Example

    const value = submissionService.getRootElementById(
    formElementId,
    form.elements,
    submission,
    )

    Returns

    Parameters

    • formElementId: string
    • formElements: FormElement[]
    • submission: undefined | {
          [name: string]: unknown;
      }

    Returns unknown