Copied to clipboard

Flag this post as spam?

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

  • EV 36 posts 146 karma points
    Oct 08, 2019 @ 12:13

    Disabling prevalues in a custom dropdown/checkbox list


    Is there any way we can disable some of the prevalues from a custom dropdown list or a checkbox list?

    I would like them to still show up, but not be available to select.

    Thanks for the help!

  • Shaishav Karnani from 348 posts 1627 karma points
    Oct 08, 2019 @ 13:30
    Shaishav Karnani from


    Yes - This is possible. You can extend the logic in FieldTypes/FieldType.CheckBoxList.cshtml or FieldType.DropDownList.cshtml and add the readonly attribute to few items.



  • EV 36 posts 146 karma points
    Oct 09, 2019 @ 08:46

    Thank you for replying Mr. Karnani. If I understood you correctly, perhaps I should create a custom property editor to be used in my custom data type.

    If that is not what you meant, could you please give me some more directions as to how to achieve this?

    Thank you very much!

    Edit: Just to clarify, I am using these in the backoffice only.

Please Sign in or register to post replies

Write your reply to: