Using a lookup in user defined rule

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Kim Jeim
Posts: 31
Joined: Tue Jun 09, 2015

11 Sep 2015

Hi,


I am trying to use a lookup field in the user-defined rule for a group of forms, but am unable to get it to work at the moment. Is there some special syntax for it? Or is the result it is looking for a combination of ID and title?


In this situation, the lookup field I am trying to use is called "Portfolio". Many thanks in advance.


Tjon

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

11 Sep 2015

Hi,


You are correct, the value stored in the lookup field has a syntax of form "ID;#Value", where ID is the id of the given entry in the list and Value is the value displayed in the lookup field box. So, you can do your comparison like this:

[Portfolio] == '1;#A Portfolio Item'

Or you can use Contains or Match functions to match only ID or Value, see http://spform.com/documentation/groups/functions for details.


Regards,

Rostislav

User avatar
Kim Jeim
Posts: 31
Joined: Tue Jun 09, 2015

13 Sep 2015

Works thanks!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests