Hey Will266 and jriesen...I've been unsuccessful in getting this piece of code to work. Please review and let me know if I'm missing something. I'm a noob with Javascript, but understand what the code should do, but when I load the userform, nothing has changed. I've been successful in getting the individual items to load, but to the point of this post, I too have a list with more columns than I'd like to add manually.
I work in a fast changing environment, so working with each column individually has been very time consuming and not adventageous for our business model.
Let me know your thoughts?
Do I still put <xsl:comment>FieldName="WhateverTheNameIs"</xsl:comment> for each item?
I work in a fast changing environment, so working with each column individually has been very time consuming and not adventageous for our business model.
Let me know your thoughts?
Do I still put <xsl:comment>FieldName="WhateverTheNameIs"</xsl:comment> for each item?
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script language="javascript" type="text/javascript" src=".../SiteAssets/Scripts/jquery-1.8.3.js"></script>
<script language="javascript" type="text/javascript" src=".../SiteAssets/Scripts/jquery.SPServices-0.7.2.js"></script>
<script language="javascript" type="text/javascript">
$().SPServices({
operation: "GetList",
listName: "{I Entered My List ID}",
completefunc: function(xData, Status) {
$(xData.responseXML).find("Fields>Field").each(function() {
var $node = $(this);
var type = $node.attr("Type");
var dispName = $node.attr("DisplayName");
if(type=="Choice"){
$().SPServices.SPArrangeChoices({
columnName: dispName,
perRow: 3
});
}
});
}
});
</script>