Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPArrangeChoices With Custom Form Not Working

$
0
0

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');
    $().SPServices.SPArrangeChoices({
      columnName: "My immediate supervisor let me know when I was doing a good job",
      perRow: 4
    });
    alert('SPServices.SPArrangeChoices completed');
  });
</script>

 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 :(


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>