Dragonfly.Umbraco10.Forms.Core
1.1.0
See the version list below for details.
dotnet add package Dragonfly.Umbraco10.Forms.Core --version 1.1.0
NuGet\Install-Package Dragonfly.Umbraco10.Forms.Core -Version 1.1.0
<PackageReference Include="Dragonfly.Umbraco10.Forms.Core" Version="1.1.0" />
paket add Dragonfly.Umbraco10.Forms.Core --version 1.1.0
#r "nuget: Dragonfly.Umbraco10.Forms.Core, 1.1.0"
// Install Dragonfly.Umbraco10.Forms.Core as a Cake Addin #addin nuget:?package=Dragonfly.Umbraco10.Forms.Core&version=1.1.0 // Install Dragonfly.Umbraco10.Forms.Core as a Cake Tool #tool nuget:?package=Dragonfly.Umbraco10.Forms.Core&version=1.1.0
Dragonfly.Umbraco10.Forms
A collection of custom Umbraco Forms FieldTypes and Helpers created by Heather Floyd.
See the article "Displaying Results After an Umbraco Form Submission" for an explanation of usage (of the version 7 package).
Installation
PM > Install-Package Dragonfly.Umbraco10.Forms
NOTE: This project was ported from the v7 version. Please report any issues you experience.
Usage
There are several new Forms Field Types which will be available after installation.
There is also a model called FormWithRecords
which helps you to work with a form and all its data. You will need to inject IFormService
& IRecordReaderService
using System;
using System.Collections.Generic;
using Dragonfly.UmbracoForms.Helpers;
using Dragonfly.UmbracoForms.Models;
using Dragonfly.UmbracoForms.Services;
using Umbraco.Forms.Core.Services;
using Umbraco.Forms.Core.Data.Storage;
public class FormDemo
{
private IFormService _FormService;
private IRecordReaderService _FormRecordReaderService;
private IRecordStorage _RecordStorage;
private NetPromoterHelperService _NetPromoterHelperService;
public FormDemo(string FormGuidString, IFormService FormService, IRecordReaderService FormRecordReaderService, IRecordStorage RecordStorage)
{
_FormService = FormService;
_FormRecordReaderService = FormRecordReaderService;
_RecordStorage = RecordStorage;
_NetPromoterHelperService = new NetPromoterHelperService(_FormService, _FormRecordReaderService, _RecordStorage);
Guid formGuid;
var validGuid = Guid.TryParse(FormGuidString, out formGuid);
var formWithRecords = new FormWithRecords(formGuid, _FormService, _FormRecordReaderService, _RecordStorage);
var netPromoterOverallScore = _NetPromoterHelperService.GetNetPromoterScore(formWithRecords, "RecommendThisThing");
foreach (var record in formWithRecords.RecordsAll())
{
//Do stuff with records...
}
}
}
Resources
GitHub : https://github.com/hfloyd/Dragonfly.Umbraco10.Forms
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Dragonfly.Net5 (>= 1.6.0)
- Umbraco.Cms.Core (>= 10.0.1 && <= 13.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Dragonfly.Umbraco10.Forms.Core:
Package | Downloads |
---|---|
Dragonfly.Umbraco10.Forms.Web
A collection of custom Umbraco Forms FieldTypes and Helpers (Umbraco 10) |
GitHub repositories
This package is not used by any popular GitHub repositories.
First release