Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Won Nyheim 33 posts 145 karma points
    Jun 18, 2021 @ 10:53
    Thomas Won Nyheim
    1

    Extending Umbraco Forms with fieldtype

    Trying to follow the guide for extending the Umbraco Forms

    But it doesn't seem that the "using Umbraco.Forms.Core.Data.Storage;" is being found as IFormStorage reference cannot be found.

    using System;
    using System.Web;
    using System.Linq;
    using System.Collections.Generic;
    using Umbraco.Forms.Core;
    using Umbraco.Forms.Core.Models;
    using Umbraco.Forms.Core.Data.Storage;
    using Umbraco.Forms.Core.Enums;
    
    
    public override IEnumerable<string> ValidateField(Form form, Field field, IEnumerable<object> postedValues, HttpContextBase context, IFormStorage formStorage)
        {
    

    Don't really know where to look, as I've now pretty much just tried to replicate the example in the documentation.

  • Nik 1617 posts 7263 karma points MVP 7x c-trib
    Jun 18, 2021 @ 10:56
    Nik
    0

    Hi Thomas,

    What documentation were you using? I ask because you've tagged the question as v7 and I have a feeling you might have been looking at v8 documentation.

    THanks

    Nik

  • Thomas Won Nyheim 33 posts 145 karma points
    Jun 18, 2021 @ 13:55
    Thomas Won Nyheim
    1

    Hello Nik,

    Thank you for you reply.

    https://our.umbraco.com/Documentation/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype

    This is the docs I've been looking at, which says 7.0.0+

  • Splinx 50 posts 186 karma points
    Jul 26, 2022 @ 14:53
    Splinx
    1

    Hey,

    Did you ever sort this out as I've got the exact same issue that I'm battling.

    Cheers, Splinx

Please Sign in or register to post replies

Write your reply to:

Draft