I have a custom aspx page in SharePoint 2010 that has one choice column set up as radio buttons and I would like to use the SPArrangeChoices function to position them horizontally. I have placed the required code on my custom aspx page but even though my alert is triggered and I don't get any errors my radio buttons still display vertically.
<script type="text/javascript">
$(document).ready(function() {
alert("him");
$().SPServices.SPArrangeChoices({
columnName: "Gender",
perRow: 3
});
});
</script>
I have put <xsl:comment> above my field.
<xsl:comment>FieldName="Gender"</xsl:comment>
<SharePoint:FormField runat="server" id="ff25{$Pos}" ControlMode="New" FieldName="Gender" __designer:bind="{ddwrt:DataBind('i',concat('ff25',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Gender')}"
/>
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->