Soenneker.TrustedForm.Blazor
4.0.436
Prefix Reserved
dotnet add package Soenneker.TrustedForm.Blazor --version 4.0.436
NuGet\Install-Package Soenneker.TrustedForm.Blazor -Version 4.0.436
<PackageReference Include="Soenneker.TrustedForm.Blazor" Version="4.0.436" />
<PackageVersion Include="Soenneker.TrustedForm.Blazor" Version="4.0.436" />
<PackageReference Include="Soenneker.TrustedForm.Blazor" />
paket add Soenneker.TrustedForm.Blazor --version 4.0.436
#r "nuget: Soenneker.TrustedForm.Blazor, 4.0.436"
#:package Soenneker.TrustedForm.Blazor@4.0.436
#addin nuget:?package=Soenneker.TrustedForm.Blazor&version=4.0.436
#tool nuget:?package=Soenneker.TrustedForm.Blazor&version=4.0.436
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 | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.12)
- Soenneker.Blazor.Extensions.EventCallback (>= 4.0.462)
- Soenneker.Blazor.Utils.ResourceLoader (>= 4.0.1768)
- Soenneker.Dtos.ProblemDetails (>= 4.0.464)
- Soenneker.Lepton.Suite (>= 4.0.93)
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 |
|---|---|---|
| 4.0.436 | 43 | 10/4/2026 |
| 4.0.435 | 41 | 10/3/2026 |
| 4.0.434 | 38 | 10/3/2026 |
| 4.0.433 | 95 | 10/1/2026 |
| 4.0.432 | 81 | 9/30/2026 |
| 4.0.431 | 87 | 9/29/2026 |
| 4.0.430 | 81 | 9/29/2026 |
| 4.0.429 | 79 | 9/29/2026 |
| 4.0.428 | 108 | 9/26/2026 |
| 4.0.427 | 94 | 9/25/2026 |
| 4.0.426 | 89 | 9/25/2026 |
| 4.0.425 | 90 | 9/24/2026 |
| 4.0.424 | 94 | 9/24/2026 |
| 4.0.423 | 203 | 9/16/2026 |
| 4.0.422 | 97 | 9/16/2026 |
| 4.0.421 | 94 | 9/16/2026 |
| 4.0.420 | 103 | 9/16/2026 |
| 4.0.419 | 106 | 9/15/2026 |
| 4.0.418 | 96 | 9/14/2026 |
| 4.0.417 | 99 | 9/13/2026 |
Update dependency Soenneker.Blazor.Utils.ResourceLoader to 4.0.1768 (#856)