Lookup does not save data when 'Allow multiple values' is selected

rss

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 Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 7 days
    #1 by Dmitry Kozlov Mar 8 ’16 at 11:00

    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?

  • kevyn
    Member
    Member for: 7 years 9 months 3 days
    #2 by kevyn Mar 8 ’16 at 12:23

    [#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 Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 7 days
    #3 by Dmitry Kozlov Mar 8 ’16 at 12:54

    [#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].

  • kevyn
    Member
    Member for: 7 years 9 months 3 days
    #4 by kevyn Mar 8 ’16 at 01:09

    [#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 Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 7 days
    #5 by Dmitry Kozlov Mar 8 ’16 at 01:22

    [#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?

  • kevyn
    Member
    Member for: 7 years 9 months 3 days
    #6 by kevyn Mar 8 ’16 at 05:21

    [#5]:  Hi there - I have tried again in Edge, and have the same results. Please find screenshot of the console:

  • kevyn
    Member
    Member for: 7 years 9 months 3 days
    #7 by kevyn Mar 8 ’16 at 05:22

    [#5]: For some reason my screenshot didn't attach. Here is the URL: http://i.imgur.com/fiPYfA8.jpg

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 7 days
    #8 by Dmitry Kozlov Mar 9 ’16 at 02:06

    [#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.

  • kevyn
    Member
    Member for: 7 years 9 months 3 days
    #9 by kevyn Mar 9 ’16 at 05:45

    Issue now resolved with support session - recreated the lookup field with a new name solved the problem. Thank you

Displaying 1 to 9 of 9 messages