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

Question

Question

weblink custom search page with multiple inputs

asked on July 3, 2017

I have created a Weblink9 custom search page with 2 inputs and set them to custom variables.  Then in the search query, I created an advanced search syntax to Or the 2 fields ({[]:[field1]="%(input1)"} | {[]:[field2]="%(input2)"}).

The user will know one field value, but normally, not both.  If they fill in just 1 of the input fields and click the submit button, nothing happens.  If they fill in their known value and put an * in the other input, then the search will run.

This 2 input custom search is just a test page and the production search would have 4 or 5 inputs of which the user may only know/have 1 or 2 of the values.  They do not want to key an * into any input that they do not have (creating many more clicks and/or keystrokes).  Is there any way we can have the search run with blank/empty input fields?

0 0

Replies

replied on July 3, 2017

Edit the field constraints in the WebLink custom search and use the condition "Use this search constraint when only the following condition is met - [Field] is set" for each field.

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

Sign in to reply to this post.