Posted: 3 Sep 2015 6:00 EDT Last activity: 16 Nov 2015 1:19 EST
Defining labels for TrueFalse property
We have a number of value mode properties of type TrueFalse that, when displayed in a section as radio buttons, have the labels "Yes" and "No". What is the BEST way of achieving this?
Note - I want to make the configuration in the property rule itself if possible, not in the control within the section. This is important as we will be reusing the property in many locations and we want to make the configuration once. I'm aware of how to do the configuration within the control in a section.
Thanks. I'd forgotten about the DisplayYesNo (and it's probably my best option at the moment) although I don't really like it as it isn't particularly flexible - it won't localise without a hotfix and you can't configure the labels dependent on the situation. For example, rather than Yes/No what would you do (aside from creating another control) if you wanted the radio buttons to display Accept/Reject or Promote/Demote?
Tweak the DisplayYesNo to accept two parameters one for true and one for false. Make sure in the control you pick up the localized value of the 2 parameters. Also remember, you can enter parameters for a control in the property level too.