Hi Marc,
I've been trying for days to get this working on dataview form.
Set Up
Arrange Choices
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/jquery-1.8.2.min.js">>
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/jquery.SPServices-0.7.2.min.js">>
<script type="text/javascript"> $(document).ready(function(){ alert("jQuery"); alert($().SPServices.SPGetCurrentSite()); $().SPServices.SPArrangeChoices({ columnName:"Request Type", perRow:6 }); });</script> Result
In SP arrange choices, I get the message that jquery is loaded as well as the path to the SP site. But nothing happens and there is no error on the page.
Multiselect
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/BMW/jquery-1.5.2.min.txt">>
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/BMW/jquery.SPServices-0.7.2.min.js">>
<script type="text/javascript"> $(document).ready(function(){ alert("jQuery is loaded!"); $().SPServices.SPSetMultiSelectSizes({ multiSelectColumn:"Transactions" }); });</script> Result
Same with MultiSelectSizes, I see the message but nothing happens, no error.
Actions Taken
Thanks a ton as always,
Srividya
I've been trying for days to get this working on dataview form.
Set Up
- Custom Master Page
-
Data View Form
- Expand size of the multiselect column
-
Arrange choices horizontally
Arrange Choices
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/jquery-1.8.2.min.js">>
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/jquery.SPServices-0.7.2.min.js">>
<script type="text/javascript"> $(document).ready(function(){ alert("jQuery"); alert($().SPServices.SPGetCurrentSite()); $().SPServices.SPArrangeChoices({ columnName:"Request Type", perRow:6 }); });</script> Result
In SP arrange choices, I get the message that jquery is loaded as well as the path to the SP site. But nothing happens and there is no error on the page.
Multiselect
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/BMW/jquery-1.5.2.min.txt">>
<script type="text/javascript" src="https://ts.companyname.com/sites/MSM/Style%20Library/BMW/jquery.SPServices-0.7.2.min.js">>
<script type="text/javascript"> $(document).ready(function(){ alert("jQuery is loaded!"); $().SPServices.SPSetMultiSelectSizes({ multiSelectColumn:"Transactions" }); });</script> Result
Same with MultiSelectSizes, I see the message but nothing happens, no error.
Actions Taken
- I've added <xsl:comment> trick to both fields just above the SharePointFormField.
- I've tried only one of the two above at any given time so there are no possibilities of conflict I believe.
- Also tried the relative URL of the site in the jquery path starting /MSM but no luck.
- I tried putting both the jquery files on the custom master page to see if that helps but no luck.
- Removed $(document).ready(function(){ but no luck either.
- Read almost all of the blogs around this topic but cannot figure out where the problem is.
-
I also added an alert after the SPwebservices call and I could get the alert as well.
Thanks a ton as always,
Srividya