This topic is locked
[SOLVED]

Problem finding records in a Lookup wizard

5/12/2022 1:03:31 PM
PHPRunner General questions
A
alfonso authorDevClub member

When adding an employee record, I have a "companies" field that I use with an "Edit box with ajax popup". I want that as the name of a company is written, all the companies that have those letters in their name appear. Now only those that "begin" with that name appear
For example, if I write "Ant" it shows me all the companies that start with "Ant" like "Antiques", but not companies that contain those letters, like "panticosa"
How can I solve this? thanks

M
macalister 5/13/2022

In AfterAppInit try add the following code:

$ajaxSearchStartsWith = true;
A
alfonso authorDevClub member 5/14/2022

This don't works to me. Shoew only field starts with "Ant
img alt
"

A
alfonso authorDevClub member 5/14/2022

I need this works like in search

img alt

admin 5/14/2022

The same thing, but make it false. In AfterAppInit try add the following code:

$ajaxSearchStartsWith = false;

A
alfonso authorDevClub member 5/16/2022

It works. Thanks. I imagine it affects all similar fields