Copied to clipboard

Flag this post as spam?

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


  • Colin Wright 5 posts 85 karma points
    May 09, 2017 @ 11:20
    Colin Wright
    0

    First Run error

    Hi,

    Just installed formulate and stuck at the stage where I am redendering the form. Followed the setup in the simple form guide but get an error on this line on page load

    CS0246: The type or namespace name 'ConfiguredFormInfo' could not be found (are you missing a using directive or an assembly reference?)

    var pickedForm = Model.Content.GetPropertyValue

    Can anyone help please?

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    May 09, 2017 @ 16:24
    Nicholas Westby
    0

    Hi Colin,

    Looks like your code snippet isn't showing up correctly (probably due to the brackets being interpreted as HTML). Looking at the source code of this page, it looks like you have lowercased the ConfiguredFormInfo class name (or maybe that's just a typo). This is what that line should say:

    var pickedForm = Model.Content.GetPropertyValue<ConfiguredFormInfo>("FormConfig");
    

    I'd also check the casing on that property alias. If Umbraco generated that for you, it'd typically be "formConfig" (lowercase first letter). Also be sure you have this at the top of the file:

    @using formulate.app.Types
    
  • Colin Wright 5 posts 85 karma points
    May 09, 2017 @ 17:22
    Colin Wright
    0

    Thanks Nicholas, yes my code never displayed properly as I had the line as you described it.

    The @using formulate.app.Types was the missing link.

    many thanks for your help

Please Sign in or register to post replies

Write your reply to:

Draft