Hi @Noral,
I have actually rebuild the dropdown as a component to extend it's functionality.
In my component, I have a property: Options, type input, table, which are the options for my dropdown. You could add your colour to this, in this format:
[
{ ID: 1, Title: "Red", Colour: Color.Red},
{ ID: 2, Title: "Green", Colour: Color.Green},
{ ID: 3, Title: "Blue", Colour: Color.Blue},
]
Your Dropdown.Items then points to this property, with the Value then selected as Title. That should give you a dropdown with the options Red, Green, Blue.
Then, in your Dropdown.OnChange, set a variable to the selected option:
Set( _Selected, Self.Selected);
Finally, create an output property: Selected, output, record, which will give your component an output record which will be the selected input record. Set its value to:
Coalesce( _Selected, First( Self.Options))
Use Coalesce() here to default the output to the first option specified in case _Selected is still blank, which it will be until the dropdown has been changed.
You can then access the selected colour with:
Component.Selected.Colour