Lookup does not save data when 'Allow multiple values' is selected
Posted by kevyn - Mar 8 ’16 at 05:49
I have a simple lookup to a 'title' field in another list - this works ok when you can only select a single lookup item. However if you allow multiple values, the meta data does not save - however the version number does increase. You can select multiple items, and they appear in the lookup, but after pressing save, nothing gets written to the metadata field
code:
function (term, page) {
if (!term || term.length == 0) {
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby=Created desc&$top=10";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField},Title&$orderby={LookupField}&$filter=substringof('" + encodeURIComponent(term) + "',Title)&$top=10";
}
-
Dmitry KozlovAdminMember for: 9 years 8 months 7 days
Hi,
Do you use SharePoint Online or SharePoint on-premises?
Do you use Forms Designer?
Have you designed the form in Forms Designer?
What browser do you use?
-
kevynMemberMember for: 7 years 9 months 3 days
[#1]:
Do you use SharePoint Online or SharePoint on-premises?
Sharepoint online (365)
Do you use Forms Designer?
We use 'cross site lookup' Version: 1.4.1.0
Have you designed the form in Forms Designer?
No
What browser do you use?
Chrome 48.0.2564.116 (Windows 10)
-
Dmitry KozlovAdminMember for: 9 years 8 months 7 days
[#2]: Thank you for the additional info. We could not reproduce the issue. Is it possible to provide temporary access to the site? If so, please, send the credentials and the direct link to the form to [email protected].
-
kevynMemberMember for: 7 years 9 months 3 days
[#3]: I cannot give access at this time, but here is a recording of what happens: https://drive.google.com/file/d/0B6R1uQorGwJYV1dyUXpNNV82OTQ/view
Please note, that when the 'allow multiple values' is unchecked, it saves correctly
-
Dmitry KozlovAdminMember for: 9 years 8 months 7 days
[#4]: We have tried to replicate the issue in both multi- and single-value modes but without success. Could you try to reproduce it in another browser, say IE or Edge? Please, open the browser console (F12) and save the form again. Have you got any JS-errors or notifications?
-
kevynMemberMember for: 7 years 9 months 3 days
[#5]: Hi there - I have tried again in Edge, and have the same results. Please find screenshot of the console:
-
kevynMemberMember for: 7 years 9 months 3 days
[#5]: For some reason my screenshot didn't attach. Here is the URL: http://i.imgur.com/fiPYfA8.jpg
-
Dmitry KozlovAdminMember for: 9 years 8 months 7 days
[#7]: Can we schedule a screen sharing session? If yes, please, install Team Viewer and send the connection settings to [email protected] when you're ready.
-
kevynMemberMember for: 7 years 9 months 3 days
Issue now resolved with support session - recreated the lookup field with a new name solved the problem. Thank you