Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a list with Lookup field. In Newform, i want filter Lookup field.

I use SPD, and created a new NewForm, then i deleted Lookup field and add a new dropdown list but i don't know how to add a datasource for it?

I don't want use SPServices.

How to filterd lookup field?

Edit:

look at the jQuery library for SharePoint, SPServices

I use this code :)

$().SPServices.SPFilterDropdown({
relationshipList: "Countries",
relationshipListColumn: "Title",
columnName: "Country",
CAMLQuery: "<Eq><FieldRef Name='Active' /><Value Type='Boolean'>1</Value></Eq>",
completefunc: null,
debug: false
});
share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

There are several projects for this on CodePlex, they are usually called Cascading Dropdowns and even got their own tag on CodePlex

share|improve this answer
    
Thanks a lot :) . –  ar.gorgin Sep 19 '12 at 7:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.