Copied to clipboard

Flag this post as spam?

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


  • Bo Jacobsen 562 posts 2288 karma points
    Aug 23, 2018 @ 09:12
    Bo Jacobsen
    0

    Where can i find available views to use for a Forms Workflow Setting

    HI all.

    Using FORMS 4.4.7 and Umbraco 7.5.12.

    I would like to know where i can find all possible views available for a attribute setting. Like there is TextField and pickers.content.

    Do anyone know?

    public class CustomWorkflow : WorkflowType
    {
        [Umbraco.Forms.Core.Attributes.Setting("Field", description = "This is a field", view = "TextField")]
        public string TextField { get; set; }
    }
    
  • Carlos Casalicchio 139 posts 572 karma points
    Jan 27, 2020 @ 20:27
    Carlos Casalicchio
    100

    I don't know if you ever found the answer to this, but it appears the available views (*default ones) are inside \App_Plugins\UmbracoForms\Backoffice\Common\SettingTypes\

    enter image description here

    • Checkbox
    • Document Mapper
    • Dropdown list
    • Email Template Picker
    • Field Mapper
    • File Upload
    • File
    • Password
    • Pickers.ConnectionString
    • Pickers.Content
    • Pickers.ContentWithXpath
    • Pickers.DocumentType
    • TextArea
    • TextField
    • TextString
  • Bo Jacobsen 562 posts 2288 karma points
    Jan 29, 2020 @ 13:32
    Bo Jacobsen
    0

    Hi Carlos.

    I was wondering if that was the case. Thanks for clearing that out.

    I followed the guide here https://our.umbraco.com/documentation/Add-ons/umbracoforms/developer/extending/Adding-a-Type where they use TextField and Pickers.Content

    Do you know if camel case is required for the views, like view = "TextField" or would i just be able to do like view = "textfield" or view = "pickers.content"?

  • Carlos Casalicchio 139 posts 572 karma points
    Jan 29, 2020 @ 18:10
    Carlos Casalicchio
    0

    I don't think it matters, cause it works either way. (I've just tested it)

  • Joao Pinto 10 posts 31 karma points
    Sep 15, 2022 @ 09:16
    Joao Pinto
    0

    With Umbraco 9 View="CheckBox" used to work. With Umbraco 10 is not working anymore, I couldn't find a list of available views. Anyone has an updated list?

  • Heather Floyd 582 posts 892 karma points MVP 4x c-trib
    Sep 15, 2022 @ 16:53
    Heather Floyd
    2

    For Umbraco 10, the views are now part of a Razor Class Library, so no longer visible in the website file tree. It seems they should still be present for Umbraco 9, but if you can't find them, perhaps take a look at the v10 files?

    If you look here: https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Themes/#creating-a-theme there is a link to a downloadable ZIP file which includes copies of all the views for developer reference.

    enter image description here

  • Joao Pinto 10 posts 31 karma points
    Sep 15, 2022 @ 17:23
    Joao Pinto
    0

    Hey Heather, thanks for the feedback, I don't think we are speaking about the same thing though. The zip file you mentioned contains the front-end views for templates. I am trying to create a workflow with custom attributes, so I'd need the list of Views available for the backoffice, not the templates. With umbraco 9 View="CheckBox" used to work, with U10 no.

  • Heather Floyd 582 posts 892 karma points MVP 4x c-trib
    Sep 15, 2022 @ 17:31
    Heather Floyd
    0

    Ah, Sorry Joao, you are correct - those aren't visible in the ZIP file.

    I've found you can peek inside the Umbraco.Forms.StaticAssets NuGet package to see those items:

    enter image description here

    "Checkbox" does seem to be available...

    You might consider adding this as an Issue at https://github.com/umbraco/Umbraco.Forms.Issues if it appears to be a bug.

Please Sign in or register to post replies

Write your reply to:

Draft