Hi all,

 

When creating a new list item, I am trying to find out how I can filter
a drop-down box (a lookup to another list) based on another field of the
foreign list.  I have these lists set up:

List A.  Fields are: ID, Enabled (Yes/No)

List B.  Fields are numerous, including one lookup to the ID field of
List A.

 

When I create a new item in List B, I'm presented with the lookup
drop-down box containing all ID's from List A.  I only want to display
ID's in that drop-down if their corresponding 'Enabled' field is set to
yes.

 

I had achieved this using a Javascript that removed all elements from
that drop-down, and repopulated it only with 'enabled' items, which
worked fine.  However, since SharePoint renders drop-downs as a <select>
if under 20 elements, and as an <input> if it contains >20 elements,
this JS only works if there are less than 20 elements in List A.  (see
http://forums.msdn.microsoft.com/en-US/sharepointdevelopment/thread/4c96
520a-bf28-4877-915a-2e615e8d1ebf/)

 

Can anyone tell me if there is another/better way of achieving this?

 

Kind regards,

Chris




------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com

Reply via email to