Feb 3, 2011 at 2:02 PM
Edited Feb 4, 2011 at 8:11 PM
Thanks! I think I have some work to do on SPFieldLookup fields anyways.
I think the GetValue and SetValue functions should be able to take ID or text (ID is the list item ID from the lookup list and the text is what is actually displayed in the list). (*Edit* I should be clear that v0.6 doesn't work like this yet.. was just
thinking out loud)
var lookupField = SPUtility.GetSPField('My Lookup Field');
lookupField.SetValue(3); // list item ID of the lookup item, doesn't change if list item is renamed
// *** or ***
lookupField.SetValue('Alpha'); // text that is displayed in the control
I'll work on getting the SPFieldLookupMulti field 100% over this weekend.