This topic is locked
[SOLVED]

 Default search values basedon SESSIOn variable

4/20/2020 9:36:10 PM
PHPRunner General questions
K
keithh0427 author

Is it possible to setup a default search panel value based on a SESSION variable?
The search panel field in question is based on a Lookup Wizard from a table.
I don't want to eliminate any of the search panel options. I just want to set the default selection for the dropdown.

K
keithh0427 author 4/20/2020

Sorry, hit submit too soon.
I could also use a GLOBAL variable as well.

Sergey Kornilov admin 4/21/2020

Check this Search API function:

https://xlinesoft.com/phprunner/docs/searchapi_set_field_value.htm
The code example there answers this exact question, it will set the default search value unless user provided the search value manually.