This project is read-only.

SPServices.SPArrangeChoices not working

Jun 9, 2014 at 4:18 PM
I hope I'm not having a DUH! moment. This seems so straightfoward. I've tried the Display Name and Column Name
It it still listing my 25 choices vertically in one column.
CODE:
$(document).ready(function () {
  $().SPServices.SPArrangeChoices({
     columnName: "Hardware Item",
      perRow: 4
});
});
<tr>
<td width="190px" valign="top" class="ms-formlabel" id="ChoiceColumnCustomID">
<H3 class="ms-standardheader"><nobr>Hardware Item</nobr></H3> </td>
<td width="400px" valign="top" class="ms-formbody">
<SharePoint:FormField runat="server" id="ff53{$Pos}" ControlMode="New" FieldName="Hardware_Item" __designer:bind="{ddwrt:DataBind('i',concat('ff53',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Hardware_Item')}"/>
<SharePoint:FieldDescription runat="server" id="ff53description{$Pos}" FieldName="Hardware_Item" ControlMode="New"/>
</td>
</tr>
Jun 9, 2014 at 7:06 PM
found my answer.
I had to add a tag to identify where the formatting should take place.
Note the <xsl:comment>FieldName="Hardware Item"</xsl:comment>
which is above the SharePoint:FormField

<tr>
<td width="190px" valign="top" class="ms-formlabel" id="ChoiceColumnCustomID">
<H3 class="ms-standardheader"><nobr>Hardware Item</nobr></H3> </td>
<td width="400px" valign="top" class="ms-formbody">
<SharePoint:FormField runat="server" id="ff53{$Pos}" ControlMode="New" FieldName="Hardware_Item" __designer:bind="{ddwrt:DataBind('i',concat('ff53',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Hardware_Item')}"/>
<SharePoint:FieldDescription runat="server" id="ff53description{$Pos}" FieldName="Hardware_Item" ControlMode="New"/>
</td>
</tr>
Marked as answer by rungusto on 6/9/2014 at 11:06 AM