Radio Buttons are not displaying horizontally on custom aspx page..

Jan 9, 2013 at 8:29 AM

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]-->

 

Jan 9, 2013 at 2:44 PM

What is the HTML that is generated?  It has to match the OOTB forms exactly for this to work.  Can you post that?

 

Cheers,
Matthew