This project has moved. For the latest updates, please go here.

SPArrangeChoices With Custom Form Not Working

Dec 28, 2012 at 4:21 PM
Edited Dec 28, 2012 at 4:23 PM

I think I need a little assistance with the SPArrangeChoices!

I have created a custom form for one of our 2007 SharePoint sites. The following code is added to the page:

<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script type="text/javascript" language="javascript" src="http://mysite/jquery-1.8.3.min.js"></script>
<script type="text/javascript" language="javascript" src="http://mysite/jquery.SPServices-0.7.2.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {
    alert('document.ready fired');
      columnName: "My immediate supervisor let me know when I was doing a good job",
      perRow: 4
    alert('SPServices.SPArrangeChoices completed');

 I inserted the alerts to verify that the js was being referenced properly - both of them pop up with no problems.

And I have the following for the field:

    <xsl:comment>FieldName="My immediate supervisor let me know when I was doing a good job"</xsl:comment> 
     <SharePoint:FormField runat="server" id="ff14{$Pos}" ControlMode="New" FieldName="My_x0020_immediate_x0020_supervi" __designer:bind="{ddwrt:DataBind('i',concat('ff14',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@My_x0020_immediate_x0020_supervi')}"/>

But when I load the page, the radio buttons are still vertical. The section works fine on a default form, but in my custom form it doesn't work at all. Help :(

Dec 28, 2012 at 10:26 PM

Try replacing your long columnName in the code with the actual field internal name which I believe you already have [My_x0020_immediate_x0020_supervi].


Dec 31, 2012 at 12:47 PM

Thanks for the response Dan. I replaced the code name in both spots with the internal field name and it still is not showing up properly.

Jan 3, 2013 at 3:35 PM

If the custom form isn't in the list context (either /Lists/listname or /listname for a Document Library) then the function won't work. You'll need to provide the listname in the options.