Soenneker.TrustedForm.Blazor
11.0.485
Prefix Reserved
dotnet add package Soenneker.TrustedForm.Blazor --version 11.0.485
NuGet\Install-Package Soenneker.TrustedForm.Blazor -Version 11.0.485
<PackageReference Include="Soenneker.TrustedForm.Blazor" Version="11.0.485" />
<PackageVersion Include="Soenneker.TrustedForm.Blazor" Version="11.0.485" />
<PackageReference Include="Soenneker.TrustedForm.Blazor" />
paket add Soenneker.TrustedForm.Blazor --version 11.0.485
#r "nuget: Soenneker.TrustedForm.Blazor, 11.0.485"
#:package Soenneker.TrustedForm.Blazor@11.0.485
#addin nuget:?package=Soenneker.TrustedForm.Blazor&version=11.0.485
#tool nuget:?package=Soenneker.TrustedForm.Blazor&version=11.0.485
Soenneker.TrustedForm.Blazor
Loads ActiveProspect TrustedForm in Blazor and exposes recording, certificate URL, and finalization controls.
Installation
dotnet add package Soenneker.TrustedForm.Blazor
Registration
using Soenneker.TrustedForm.Blazor.Registrars;
builder.Services.AddTrustedFormInteropAsScoped();
Component usage
@using Soenneker.TrustedForm.Blazor
@using Soenneker.TrustedForm.Blazor.Options
<TrustedForm @ref="_trustedForm"
Configuration="_configuration"
OnLoad="OnTrustedFormLoaded">
<label>
Email
<input name="email" type="email" />
</label>
</TrustedForm>
@code {
private TrustedForm? _trustedForm;
private readonly TrustedFormConfiguration _configuration = new()
{
Sandbox = true,
UseTaggedConsent = true
};
private async Task Submit(CancellationToken cancellationToken)
{
string? certificateUrl =
await _trustedForm!.GetCertUrl(cancellationToken);
// Submit the certificate URL with the lead data.
}
private Task OnTrustedFormLoaded() => Task.CompletedTask;
}
Use the exact certificate URL returned by GetCertUrl() when submitting the lead. OnLoad means the TrustedForm script initialized; it does not mean a certificate URL is already available.
Configuration
Sandbox should be enabled outside production. DisableRecording prevents automatic recording; call Start() or StartIfNotRunning() when consent has been obtained. Field overrides the generated hidden certificate-field name, and UseTaggedConsent enables TrustedForm's tagged-consent behavior.
var configuration = new TrustedFormConfiguration
{
Debug = true,
Sandbox = true,
DisableRecording = true,
UseTaggedConsent = true
};
Set IncludeForm = true only when the component should create its own form around ChildContent. Finalize() submits that internal form through a hidden button, so it requires IncludeForm; do not place another EditForm or HTML <form> inside it. When your application already owns the form, leave IncludeForm disabled and retrieve the certificate URL before normal submission.
ProblemDetails, ProblemDetailsChanged, and ProblemDetailsContent expose script-initialization failures. Avoid enabling Debug in production because browser-console output can reveal integration details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.AspNetCore.Components.Web (>= 11.0.0-rc.3.26522.148)
- Soenneker.Blazor.Extensions.EventCallback (>= 11.0.474)
- Soenneker.Blazor.Utils.ResourceLoader (>= 11.0.1821)
- Soenneker.Dtos.ProblemDetails (>= 11.0.483)
- Soenneker.Lepton.Suite (>= 11.0.136)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.485 | 0 | 11/4/2026 |
| 11.0.484 | 0 | 11/3/2026 |
| 11.0.483 | 33 | 11/3/2026 |
| 11.0.482 | 33 | 11/3/2026 |
| 11.0.481 | 38 | 11/3/2026 |
| 11.0.480 | 39 | 11/3/2026 |
| 11.0.479 | 48 | 11/3/2026 |
| 11.0.478 | 45 | 11/3/2026 |
| 11.0.477 | 44 | 11/3/2026 |
| 11.0.476 | 44 | 11/3/2026 |
| 11.0.475 | 49 | 11/3/2026 |
| 11.0.474 | 53 | 11/2/2026 |
| 11.0.473 | 54 | 11/2/2026 |
| 11.0.472 | 51 | 11/2/2026 |
| 11.0.471 | 60 | 11/2/2026 |
| 11.0.470 | 59 | 11/2/2026 |
| 11.0.469 | 68 | 10/27/2026 |
| 11.0.468 | 60 | 10/27/2026 |
| 11.0.467 | 63 | 10/27/2026 |
| 11.0.466 | 69 | 10/26/2026 |
Updated Multiple NuGet packages