How can I get the display text of selected radio button control item?

Hi,

it's my first day with forms designer and I have some questions, to get along. My first question is: How can I get the display text of the selected item of a radio button control?

The following command
alert(fd.field('RadioButtun').value());
provides the index of the selected item, that means 0, 1 or 2.

Thanks, Torsten

Hello @tah,

Please use the following code to get the text of the selected radio button.
Just replace 'FieldName' with the Internal Name of the choice field on your form.

var position = fd.field('FieldName').value();
fd.field('FieldName').control()._el().find('td').eq(position).find('label').text();

Just for the future, questions about Forms Designer are better answered in the official Forms Designer forum here - https://spform.com/forum/