Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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!
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
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.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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!
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
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.
is working on a reply...