Copied to clipboard

Flag this post as spam?

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


  • daveb.84 21 posts 46 karma points
    Nov 09, 2011 @ 14:52
    daveb.84
    0

    Disable/Remove specific Field Type options

    Is there a way of removing/disabling some of the items in the Field Type drop down? (The drop down that is displayed in the back office when designing a form)

    The problem being, the available field types are populated automatically with every type in all assemblies that inherit "FieldType".  I have one assembly that has some field types I want to be available, and some that I don't.  Is there a mechanism in place to do this?

  • gilad 185 posts 425 karma points
    Mar 18, 2012 @ 13:51
    gilad
    0

    hii, i am tried also to remove a field type , and find your post here.

    i find a solution, dont know if the best one but working...

    ( if it is still relevant )

    In Usercontrol/umbracoContour/EditForm.ascx

    you can add this lines at the end of <script> tag line 41.

    $(document).ready(function(){
    $("#fieldtype_title").live("click",function(){
    $("#fieldtype_msa_2").remove();
    });

    });

     

    change this to the type you wnat to remove -

    $("#fieldtype_msa_2")

    the - "2" is the index of the type ( 0 is the first ) ,

    in my case i removed the datePicker type.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft