Text Value of a RADIO

Is it possible to get the value of the displayed text of the selectet option on a radio control?
For exampel, i have a radio with two options ‘male|1’ and ‘female|2’. If the user clicks on female I need both values, ‘2’ and ‘female’.

When you have the real value from your dataprovider, you can get the display value using:

application.getValueListDisplayValue(valuelistName, realValue);

var displayValue = application.getValueListDisplayValue(‘yourValuelistName’, 2);

should work

:D

So far, this works fine. Thanks for the answers.

If the valuelist ist based on i18n textes. Is it also possible to get the i18n key of the selected option instead of the real text?