You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Custom Weblink Search for Multiple Fields

posted on October 2, 2014

Have a customer that has a custom search in Weblink to allow users to search for First Name.  They now have a new template that has a field called 01-First Name.  They'd like that search to be able to search across both of those fields.  Does anyone know how to do this in the Weblink Configurator where you create those custom searches?

 

Thanks!!

0 0
replied on October 3, 2014

So we were able to figure that part out...but the issue we now have is that with a typical Client...you can search for field "First Name"=Daryl and it will find all documents where first name is Daryl.  If you also search for "LastName"=Foxhoven, then it narrows down to ONLY those documents that have Daryl Foxhoven.  In the Weblink Search Form...we can't seem to get it to work when we try to do our search query.  Our form we have a field that is searching for First Name: {[]:[First Name]="%(SearchTerm)"} | {[]:[01-First Name]="%(SearchTerm)"} so it searches for that name in both fields, but then we also have a field that is searching for Last Name:{[]:[Last Name]="%(SearchTerm)"} | {[]:[01-Last Name]="%(SearchTerm)"}. I would think that when I enter Daryl in the First Name and Foxhoven in the Last Name it would only find those documents with Daryl AND Foxhoven in those fields...but it's still finding ALL documents with the First Name Daryl regardless.

0 0
replied on October 3, 2014 Show version history

Are you talking about something like here:

http://www.laserfiche.com/support/webhelp/weblink/8.2/en-US/WLA/WL8Admin_CSH.htm#Customizing%20the%20Search%20Query.htm

 

If you wanna make a search that works for both fields, you make 2 searches that work, 1 for each field. You then combine them with a | between as that is the way to indicate 'OR'

 

Again, this is the (SHIFT+\ ) to get the | you need

 

As an example, the following is how to combine two searches:

{[]:[First Name]="Daryl"} | {[]:[01-First Name]="Daryl"}

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.