You need to sign in to do that
Don't have an account?
Raghu Sharma 6
Equivalent of apex:inputHidden in lightning?
a. What is the equivalent of apex:inputHidden in lightning components?
b. I'm planning to implement TypeAhead/Predictive search to show the results from database/api calls. Any inputs/sample code on the approach to be followed?
b. I'm planning to implement TypeAhead/Predictive search to show the results from database/api calls. Any inputs/sample code on the approach to be followed?
b.
I had created one unmanaged package:
https://login.salesforce.com/packaging/installPackage.apexp?p0=04t7F000001Awy1
install this and check the relevant part.
You can check few links below:
https://meltedwires.com/2015/10/27/salesforce-lightning-lookup-component/
https://bitbucket.org/nlearner/lookup-lightning-component-slds.git
I have verified your component. My situation is slightly different. To make it easier to understand, lets use your example.
Assume you need a launch this lookup component from tab. After tab is launched, we should be able to search any contacts. So, when user types in 'Contact1', lookup should show all avaible contacts whose name starts with 'Contact1'. Based on the options shown, user can select a value and then he will click on a button which will perform some action using the contact information based on the contact chosen. In this situation, as we are only showing contact name in lookup but when user clicks on button, we will need additional contact info which is not shown on screen. How to achieve this scenario?
https://www.lightningdesignsystem.com/components/lookups/
You just have tweek UI and change the logic to fetch extra info.