form
|
Type |
Function |
|
Import path |
|
Sends a FORM event.
Signature
Parameters
|
Name |
Type |
Description |
Value |
|---|---|---|---|
|
|
|
Required. The UUID of the SitecoreAI form. To find the form ID in SitecoreAI Forms, click the form, then click Settings. The form ID is in the Form ID field. |
|
|
|
|
Required. The interaction the site visitor has with the form. Format: uppercase. |
Must be one of:
|
|
|
|
Required. The UUID of the component that contains the SitecoreAI form. Used for A/B/n testing. |
|
Return value
Returns a promise or null.
Examples
Next.js
To run this function, you have to first initialize the Cloud SDK.
See more examples.
Here's an example of how to use the form function: