Access radio label instead of value selected by binder

Confluence User - 25 Jun, 2024

Hi there experts! i want to access the label of the option selected in the radio instead of the value. For example, a have a radio with two options, A (value is 1) and B (value is 2). Is there any way to access the respective label of the option selected? In this case if i select A, i want to access by a binder the LABEL A, but when i use binder i can only get the value 1. 


Thanks in advanced!


radiobutton

2


26 Jun, 2024
confluenceUser
1
confluenceUser

Hi there,

have you tried the binder.options ?
say .
FORM_DEF_ID : formA
FIELD_ID : radio

Change from
#binder.formA.radio# 
(will show value : 1,2)
to 
#binder.options.formA.radio#
(will show label A,B)



26 Jun, 2024
confluenceUser
confluenceUser

Thats it, thank you very much for your time. 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print