I’ve been experimenting with the new lightning:inputfield and it seems that the lookup fields don’t work in the mobile app or in Lightning Components which have been embedded in VF pages. Can people confirm if that is the case?
If so, does anybody know if there are plans to make them work in those environments? There not a danger that Salesforce is making migration pathways to Lightning Experience that much harder for larger organisations with complex/slow migration plans? It seems that the option is either to:
- Develop functionality twice (as both VF pages and Lightning Components) so that the use case can work in either environment during the migration
- Develop VF pages to embed in lightning experience (which has all sorts of issues with passing data out of the VF controllers to the pages they’re embedded in, etc.)
It would be good to understand whether this is a thing we can wait for, or will need to consider as part of an eventual migration strategy.
For completeness, here is the simple component I've been able to get working in Lightning Experience:
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
<lightning:card title="Managing Escalations" iconName="custom:custom76">
<lightning:recordEditForm aura:id="recordViewForm"
recordId="{!v.recordId}"
objectApiName="Services__c"
>
<lightning:inputField fieldName="Escalation_Approver_Primary__c"/>
<lightning:inputField fieldName="Escalation_Approver_Secondary__c"/>
<lightning:inputField fieldName="Escalation_Approver_Tertiary__c"/>
</lightning:recordEditForm>
</lightning:card>
The lookups will auto-complete, etc. in Lightning Experience. However, when this component is embedded in a VF page, the auto-complete dropdowns don't populate and you get a constant loading spinner on the right-hand side.