It's all about the answers!

Ask a question

Can I dynamically make one selection of an EnumerationList show read-only?

Susan Hanson (1.6k2191193) | asked Aug 27 '14, 1:49 p.m.
I have an enumeration which is displayed as an EnumerationList  (multi-select) as a set of checkboxes.

I'd like to dynamically enable/disable a given checkbox based on the value of another attribute.  For example:

If attribute A = 1
then allowable values (those enabled) are X, Y, and Z
but if attribute A = 2
then allowable values (those enabled) are only Y and Z.  X is not valid.

My enumerations are stored in the configuration.

Can this be done?

sam detweiler commented Aug 27 '14, 6:12 p.m.

sorry, no.. dependent enums only work for singe select.

One answer

permanent link
Eric Jodet (6.3k5111120) | answered Aug 27 '14, 4:50 p.m.
 Hello Susan,
did you try dependent enumerations ?


Susan Hanson commented Aug 27 '14, 4:56 p.m.

I use dependent enumerations for single-select enumerations in a few places ... i didn't realize that they could work for multi-select ones also ...

Susan Hanson commented Aug 27 '14, 5:01 p.m.

So I created a new ValueSet between my two Enumerations, but when I attempt to set the value set on the EnumerationList, it is greyed out and doesn't allow me to select a value set.

Your answer

Register or to post your answer.