문제

When using jQuery, what is the syntax to set a lookup column to a value retrieved from another lookup column. I have been able to prepopulate a string column with a value retrieved from a lookup column, but am having trouble setting a lookup column to this value. How do I set the lookup column to the id of the value that the jQuery retrieved for me? Thank you.

도움이 되었습니까?

해결책

Can you explain a little more? How are your lookup columns related?

If you take a look at my SPServices jQuery library, it may give you some clues. The way I read your question, you should probably just be setting to the text value, not bothering with the ID.

다른 팁

You can use the following:

 var selector="select[title=MyLookup]"; $(selector).val(newValue);

the newValue could be an ordinal of the option or the displayed text equivalent of the option.

HTH

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top