1

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
});

1 Answer 1

0

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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