Related Items Lookup on field with multiple items

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
mac_xpert
Posts: 13
Joined: Thu Sep 18, 2014

29 Sep 2014

Hi

I'm trying to create a 'related items' section in a form, based on a lookup field that allows multiple items. How do i do this?

It works fine if the lookup field does not allow multiple items, but if it does i'm unable to select it under 'filter by lookup field' in forms designer.


Thanks,


Matt

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

30 Sep 2014

Hi,

Unfortunately, the related items control doesn't support filtering by multi-lookup columns.

AgneseB
Posts: 14
Joined: Tue Dec 16, 2014

18 Dec 2014

Is it possible to apply some custom filter to Related Items?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

19 Dec 2014

Yes, if the list is rendered in the Client mode, you can pass filter values in the hash part of the URL as I did in our charting demo:

http://www.spchart.com/demo/link-chart-to-list

Switch to the Configuration page to find the instructions and code samples. If you use the related items in the server side mode, it may take about 100 support minutes to prepare the scripts.

AgneseB
Posts: 14
Joined: Tue Dec 16, 2014

22 Dec 2014

I have a multi lookup field "contractors" in my Agreements list. What I would need is to display contractor details (e.g. address, reg.no.) when user selects contractors (they can be several). What would be the best way to achieve that?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

22 Dec 2014

You can use additional columns of the lookup field. Also you can copy extra information via a workflow or our Cross-site Lookup that allows you to retrieve additional columns from the source list when a user goes through the result set on a form.

AgneseB
Posts: 14
Joined: Tue Dec 16, 2014

23 Dec 2014

I was able to retrieve additional colums but can't find how to display them in a table (each contractor details in a separate row, like a repeating table in InfoPath).

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

24 Dec 2014

Hi,

You could store the additional information as a JSON object in a separate hidden field and display it as a table in a form via JavaScript. Our support team can help you with it. It will take about 200 support minutes. If you're interested, please, drop us the detailed requirements to get more precise estimation.

mac_xpert
Posts: 13
Joined: Thu Sep 18, 2014

15 Jan 2015

With the new release of the related items field in SharePoint Forms Designer 2.9.1 is it now possible to do a lookup on a lookup field with multiple items?

mac_xpert
Posts: 13
Joined: Thu Sep 18, 2014

15 Jan 2015

Never mind i have answered my own question and have got it working. Excellent development. Thankyou.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests