I am new to Salesfore1 & mobile development and facing one issue..
I am trying to create one publisher action with custom VF page as content source. Within my VF Page there was a custom field (i.e. lookup to Account) and it was coming as a text field (no search icon or alternative where to search appropriate account).
So there is no way for user to search & select account record on custom VF page.
if I keep “SandardStylesheets” property of tag as TRUE then I can see lookup icon (as we get in web) but having few issue which is discussed here.
So my questions are :
- Is reference field is support in Publsher Action’s VF page?
- If not, is there any quick/easy alternative option?
- Is it known issue/limitation in Salesforce?
- Is there any idea posted on the same (tried but unable to find)?
I also found something related in “Salesforce Touch” FAQ :
As in the full site, lookup fields allow you to associate other records with the one you’re creating or editing. But the lookup interface in Salesforce Touch is optimized for working on touchscreen devices.
But the same is not working in Salesforce1.. 🙁
It is a known limitation of Salesforce1 Mobile and is documented in the Salesforce1 App Developer’s Guide.
From the Salesforce1 App Developer’s Guide section, Visualforce Components to Avoid in Salesforce1:
Using <apex:inputField> is fine for fields that display as a basic input field, like text, email, and phone numbers, but avoid using it for field types that use an input widget, such as date and lookup fields.
And, from the Unsupported Visualforce Components section:
<apex:inputField> for field types that use a widget for input, instead of a basic form field
Additionally, a web developer from Salesforce.com answered the question you referenced (Lookup fields using Salesforce1 and Visualforce) with an answer that stated they weren’t supported in that way, so it’s a safe bet that’s the case. 😉
I did not see any Ideas, either, when I searched for ‘Salesforce1’: https://success.salesforce.com/ideaSearch?keywords=salesforce1.
I’m not aware of a quick/easy way. Depending on your situation you could try an autocomplete, e.g., jQuery Mobile – Remote autocomplete.