Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Search API > Methods

Search API: getFieldValue

Scroll Prev Next More


Returns the search control value.





the name of the field.

Return value

Returns the search control value.


This code should go to AfterTableInit or BeforeDisplay events of List or Print page. Get the search value of the Make field.


$srchObj = SearchClause::getSearchObject("Cars");
echo $srchObj->getFieldValue("Make");

See also:

Search API: getSearchObject

Search API: setFieldValue()

Example: Search Master and Details tables together

Example: Print search parameters on the List page

About Search API


Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software