Copied to clipboard

Flag this post as spam?

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


  • Zac 223 posts 575 karma points
    Mar 29, 2015 @ 23:03
    Zac
    0

    Umbraco Forms - custom FieldType using GUID

    Hi there,

    Is it still possible in Umbraco Forms to override a FieldType on a one-off basis as we used to for Contour, e.g. https://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Custom-Markup/

    I've tried putting my custom fieldtype in /Views/Partials/Forms/{guid-here}/FieldName.cshtml and also /Views/Forms/{guid-here}/FieldName.cshtml but no dice.

  • Chris Wilson 100 posts 377 karma points
    Mar 30, 2015 @ 09:55
    Chris Wilson
    0

    This is the new documentation for the Forms project:

    https://our.umbraco.org/documentation/Products/UmbracoForms/Developer/Custom-Markup/

    As that section is lacking from the documentation I'd say it's included in either the section marked not currently implemented, or never to be implemented.

    Sorry I can't offer any more insight than that.

  • Zac 223 posts 575 karma points
    Apr 15, 2015 @ 02:15
    Zac
    100

    Coming back to this.

    This functionality indeed seems to no longer be available.

    What we ended up doing to work around this was to modify the default field types themselves and hook into the field ID.

    This allowed us to explicitly target a field from a particular form, and we would then render an alternative partial for that field instead.

    If Model.Id = 'some-guid'
       Show Partial '/Custom/LoremDropDown.cshtml'
    Else
       Use the default template
    
Please Sign in or register to post replies

Write your reply to:

Draft