# Formatting the RadioButton textfield

**URL:** <https://forum.kirupa.com/t/formatting-the-radiobutton-textfield/273690>\
**Category:** flash\
**Created:** [October 19, 2008, 2:06am UTC](https://forum.kirupa.com/t/formatting-the-radiobutton-textfield/273690 "2008-10-19T02:06:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [October 19, 2008, 2:06am UTC](https://forum.kirupa.com/t/formatting-the-radiobutton-textfield/273690/1 "2008-10-19T02:06:49Z")

</div>

[LIST=1]  
[_]Is there any way to create multiline text in the radio button textfield?  
[_]Is there any way to assign htmlText to the radio button’s label?  
[/LIST]

Here is some code I’m working with:

```auto

var myGroup:RadioButtonGroup = new RadioButtonGroup("group1");
myGroup.addEventListener(Event.CHANGE, changeHandler);
for (var i:int = 0; i < choices.length; i++) {
    var rb:RadioButton = new RadioButton();
    rb.textField.multiline = true;
    // Two lines below are buggy
    //rb.setSize(300, rb.height);
    //rb.textField.wordWrap = true;
    rb.textField.embedFonts = true;
    rb.textField.antiAliasType = AntiAliasType.ADVANCED;
    rb.setStyle("textFormat", answerFormat);
    rb.textField.autoSize = TextFieldAutoSize.LEFT;
    rb.label = choices*;
    rb.group = myGroup;
    rb.value = i + 1;
    rb.x = answerX;
    rb.y = answerY + (i * spacing);
    addChild(rb);
}

```
