You need to sign in to do that
Don't have an account?
khushi ahuja
Search Function should be available like google search
Hey,
My usecase is create a text space wherein user can search for contacts, as soon as user starts to type show records matching that criteria so that he can select the contact. (Similar to how you perform a google search, the moment you type in the recommended results are available to select in order to complete the text for search).
I have my query as below but i want search functionality such that recommended results should be available. plz help
string searchquery = 'select id,FirstName,Email from Contact where FirstName LIKE \'%'+searchName +'%\' AND AccountId = \''+acc.Id+'\'';
My usecase is create a text space wherein user can search for contacts, as soon as user starts to type show records matching that criteria so that he can select the contact. (Similar to how you perform a google search, the moment you type in the recommended results are available to select in order to complete the text for search).
I have my query as below but i want search functionality such that recommended results should be available. plz help
string searchquery = 'select id,FirstName,Email from Contact where FirstName LIKE \'%'+searchName +'%\' AND AccountId = \''+acc.Id+'\'';
https://opfocus.com/visualforce-autocomplete-lookup-fields/
http://anupjadhav.com/2013/02/01/jquery-autocomplete/
http://www.minerva18.com/blog/autocomplete-textbox-salesforce/
http://blogforce9.blogspot.com/2013/10/auto-complete-visualforce-component-v2.html
https://github.com/Avinava/Autocomplete-Visualforce-Component-V2