+ Start a Discussion
Rajat Mahajan 21Rajat Mahajan 21 

VF in SF1 loads twice sometimes

Hi All

I am having a custom file upload functionality in an inline VF page.
However when i use this inline page on SF1 - I click on upload and the same VF opens its self again in a new window (not in inline form)
Then it allows me to upload files from my device

Could you please help me with this issue?

Thanks in advance!
bob_buzzardbob_buzzard
I think this is due to the way that VF pages are rendered in Salesforce1 - an onclick handler is added outside of the iframe containing your page and when you click on that, the entire page opens in a new window and you can then interact with it.  It was the same for mobile cards the last time I looked. I usually add an publisher action for this type of interaction now - that way the VF page that is rendered when the user chooses the action can be interacted with immediately.