Dragonfly.Umbraco10.Forms.Core 2.0.0

dotnet add package Dragonfly.Umbraco10.Forms.Core --version 2.0.0
NuGet\Install-Package Dragonfly.Umbraco10.Forms.Core -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dragonfly.Umbraco10.Forms.Core" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dragonfly.Umbraco10.Forms.Core --version 2.0.0
#r "nuget: Dragonfly.Umbraco10.Forms.Core, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Dragonfly.Umbraco10.Forms.Core as a Cake Addin
#addin nuget:?package=Dragonfly.Umbraco10.Forms.Core&version=2.0.0

// Install Dragonfly.Umbraco10.Forms.Core as a Cake Tool
#tool nuget:?package=Dragonfly.Umbraco10.Forms.Core&version=2.0.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

Nuget Downloads

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
2.0.0 80 4/23/2024
1.1.0 121 2/20/2024
1.0.0 296 10/5/2022

Updated to use 'Dragonfly.Net6'