Evalkeeper
    Preparing search index...

    Function answerFromForm

    • The answer a form submits for a suite: from an answer editor (JSON in ANSWER_JSON_FIELD, checked against the suite's labelValue) when the form has one, otherwise the suite's own labelFromForm. Throws a plain error when the suite has neither, or the answer doesn't fit.

      Parameters

      • suite: AnySuite

        The suite the answer is for.

      • form: FormData

        The submitted form.

      Returns unknown