Copied to clipboard

Flag this post as spam?

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


  • praveity 100 posts 125 karma points
    Apr 21, 2012 @ 12:37
    praveity
    0

    Tweak the default fieldtype

    Hi to all,

    I am trying to add additional attribute to the "radiobuttonlist" keeping its default funcitonality of it. Or I would like to have a custom fieldtype with same functionality as radiobuttonlist with my addtional attribute.

    I was able to have the attribute but not retain the default functionality, followed http://www.nibble.be/?p=154

     

     [Umbraco.Forms.Core.Attributes.Setting("Explanation", description = "Enter the explanation")]
    public string Explanation { get; set; }

     

    Can anybody help me out on this?

     

  • Comment author was deleted

    Apr 21, 2012 @ 13:32

    Well you can download the code for the default one on the contour project page

    http://our.umbraco.org/projects/umbraco-pro/contour (at the bottom, sourcecode tab)

     

  • Comment author was deleted

    Apr 21, 2012 @ 13:32

    That's for the v4 version are you using it on v5?

  • praveity 100 posts 125 karma points
    Apr 27, 2012 @ 04:43
    praveity
    0

    Thanks for the reply Tim, 

    Yes I did the source code download and was able to develop custom fieldtype. It really did help.

    I got another question now though, Can we know the contour form step currently we are while navigating the form on razor or any other ?

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies