Dropdown lists and checkbox lists
# help-with-umbraco
m
Is there a way by any chance to make the option label different than its value. For example:- if i have 5 options in my checkbox or my dropdown list like the below - Lorem Ipsum is simply dummy text1 - Lorem Ipsum is simply dummy text2 - Lorem Ipsum is simply dummy text3 - Lorem Ipsum is simply dummy text4 - Lorem Ipsum is simply dummy text5 i want instead of depending on this long text as a value making the values of these options 0, 1, 2, 3, 4. I used to do this using Contentment package, but there is no stable release from it compatible with v15 till the moment, and that’s why i am trying to use the default ones.
Is there any way to do so? Thanks in advance
r
Umbraco's built in editors don't allow for this as far as I'm aware unfortunately, I've always had to use Contentment or similar plugins
It does look like almost everything is working for the data list in the v15 version of Contentment though (according to [this thread]()), so you could potentially try the nuget pre-release
6.0.0-alpha004
version to see if it works for your use case
m
thanks, @Rachel D i don't want to depend on any package to do this anymore because of the issues i faced on upgrading. that's why i am trying to use the built-in ones
l
@MrBrightside Contentment for v15 is coming soon, (no firm date though, as usual it's a case of me finding free time to do it). 😅 With regards to your comment about upgrading with packages, is that specifically Contentment related (with upgrading to v14/v15)? or more of a general comment? As for built-in core support for similar list editors (with different labels/values), there's nothing on the roadmap for it yet. I saw that you [started a discussion](https://github.com/umbraco/Umbraco-CMS/discussions/17931) about it, which is the best way to get the ball rolling with such features! I'm not against having Contentment Data List in the core CMS, it just needs to be handled with care. (Some think it's a quick dump the package in the core and job done... I did that with Nested Content and later regretted it)
m
Hi @leekelleher, Thanks for your great efforts! General comment. I am trying to reduce the packages I am using because of the compatibility version, so i am trying to convert the packages I use by using the built-in features to do the same logic. So, any future upgrades will not affect on the code written and no need to wait until these packages are upgraded.
I am not referring to all the features provided by "Contentment." My focus is specifically on the checkbox and dropdown list components. Additionally, I am not referring to all the features available for these components either. Having both the value and the label displayed is essential, particularly when the options contain lengthy text and are tied to specific business logic.
2 Views