Copied to clipboard

Flag this post as spam?

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


  • EV 27 posts 137 karma points
    1 week ago
    EV
    0

    Disabling prevalues in a custom dropdown/checkbox list

    Hi,

    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 digitallymedia.com 330 posts 1536 karma points
    1 week ago
    Shaishav Karnani from digitallymedia.com
    0

    Hi,

    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.

    Cheers,

    Shaishav

  • EV 27 posts 137 karma points
    6 days ago
    EV
    0

    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:

Draft