I have a radio list button in a form wirh normal submitbutton.
The value that is POSTed when I click on submit button post the radio button value twice. One is empty
View
<?php echo $form->radioButtonList($model,'exposed_to',array( 3=>'On',
2=>'Off',
1=>'Neutral'),
array('separator'=>' ',
'labelOptions'=>array('style'=>'display:inline',
'class'=>'fire-toggle',
)); ?>
The HTML generated is
<input type="hidden" name="advertisement[exposed_to]" value="" id="ytadvertisement_exposed_to">
<span id="advertisement_exposed_to">
<input id="advertisement_exposed_to_0" class="error" type="radio" name="advertisement[exposed_to]" value="3">
<label class="fire-toggle" for="advertisement_exposed_to_0" style="display:inline">On</label>
<input id="advertisement_exposed_to_1" class="error" type="radio" name="advertisement[exposed_to]" value="2">
<label class="fire-toggle" for="advertisement_exposed_to_1" style="display:inline">Off</label>
<input id="advertisement_exposed_to_2" class="error" type="radio" name="advertisement[exposed_to]" value="1">
<label class="fire-toggle" for="advertisement_exposed_to_2" style="display:inline">Neutral</label>
</span>
The POST values in Firebug is
advertisement[exposed_to]
advertisement[exposed_to] 2
saveButton Save
The radio button filed in validation is required. The error message on form shows its blank