Marc,
Here is my problem
1.I have a list called Status which has two columns 'Title' and 'SortOrder' both are Single line of text fields.
2.I have another list which has look up field 'Status',which is in the relation ship with the above list 'Status' title field.
3. For sorting the status look up field i used the below code
<script type="text/javascript" src="../../jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../../jquery.SPServices-0.7.1a.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$().SPServices.SPFilterDropdown({
relationshipWebURL: "", // The source list for the Recommendation site Column is in the root site
relationshipList: "Status",
relationshipListColumn: "Title",
relationshipListSortColumn: "SortOrder",
columnName: "Status",
CAMLQuery: "<Neq><FieldRef Name='Title' /><Value Type='Text'></Value></Neq>", // Get all values by specifying a non-blank Title
debug: true // Debug mode on while we're developing
});
});
</script>
4.Sorting works as expected .When i made the Status field as mandatory field sorting is not working as expected.Instead of providing the below order
1.Open 2.Closed 3.In Progress it provides as 1.Closed 2.Open 3.In Progress
I am facing the sorting issue when the look up field is marked as mandatory field.
Let me know for any corrections
Thanks in Advance
Bindu