Table of Contents

Class SubmitResult

Namespace
MegaForm.Sdk
Assembly
MegaForm.Sdk.dll

Result of submitting form data through ISubmissionApi.SubmitAsync. Mirrors the server submission pipeline's outcome. On a validation failure Success is false and ValidationErrors carries the per-field messages (no row is saved).

public sealed class SubmitResult
Inheritance
SubmitResult
Inherited Members

Properties

ErrorMessage

Human-readable error message when Success is false, otherwise null.

public string? ErrorMessage { get; set; }

Property Value

string

IsSpam

True when the submission was flagged as spam by the anti-spam check.

public bool IsSpam { get; set; }

Property Value

bool

RedirectUrl

Optional redirect URL configured on the form for after a successful submit.

public string? RedirectUrl { get; set; }

Property Value

string

SpamScore

Spam score assigned by the anti-spam check (higher = more spammy).

public double SpamScore { get; set; }

Property Value

double

SubmissionId

Id of the newly created submission (0 when the submit failed).

public int SubmissionId { get; set; }

Property Value

int

Success

True when the submission was accepted and persisted.

public bool Success { get; set; }

Property Value

bool

SuccessMessage

Optional success message configured on the form (post-submit experience).

public string? SuccessMessage { get; set; }

Property Value

string

ValidationErrors

Per-field validation errors (field key → message) when validation failed; null on success.

public Dictionary<string, string>? ValidationErrors { get; set; }

Property Value

Dictionary<string, string>