here in my case I would not like to use any lookup table.
I simply need a static lookup without using the lookup table
and only using the static User Values
This might help: > https://discourse.hkvstore.com/t/populate-a-select-tag-with-dynamic-values-or-from-table/4362/1
I try with this, in my case as there is no lookup table I am unable to solved the issue.I just select a random table as lookup table and put the code under the Lookup_Selecting
if ($fld->Name == "year"){
$fld->Lookup->setOptions([
["2001", "2001", "", "", ""],
["2002", "2002", "", "", ""],
["2003", "2003", "", "", ""],
["2004", "2004", "", "", ""]
]);
}
Here the $fld->Lookup->setOptions value is showing on the Add page and Edit Page
But in the search field, the $fld->Lookup->setOptions value is not showing.