Adobe Experience Manager Adaptive Forms provides the GuideBridge JavaScript API for interacting programmatically with form elements, executing supported operations, and examining operation results.
The GuideResultObject class encapsulates information returned by GuideBridge operations and provides access to errors generated during API execution.
Its ErrorMessage type includes properties such as code , message , and somExpression . These properties allow developers to inspect diagnostic information and identify the form component associated with an error when a SOM expression is available.
The message property contains a user-readable description of the error, while somExpression can identify the affected field.
An important distinction is that Adobe documents getNextMessage() as a method of GuideResultObject , not as a method defined directly on the submit API.
When an operation returns an unsuccessful result, the developer can invoke getNextMessage() repeatedly to retrieve the available error messages until the method returns null .
Option B identifies a real method but incorrectly describes its ownership. Option C refers to an errorText property that is not the documented mechanism for retrieving these GuideBridge errors.
Accordingly, option A is the most accurate selection.
Official Adobe references:
Adaptive Forms JavaScript Library API — GuideResultObject, ErrorMessage and getNextMessage()