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
    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 1562 karma points
    Oct 08, 2019 @ 13:30
    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 36 posts 146 karma points
    Oct 09, 2019 @ 08:46
    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