2

I have a VF page on Opportunity, when a link is clicked on the page it prompts to create new contact using URL hack- /003/e?accid=.....

This is not working in Salesforce1 properly- ie not pre-populating fields. Can someone give an example to make this work?

Thanks laxmi

3
  • URL hacks don't work in Salesforce1. Your options are to use an action or, if you need to do more than an action can handle, create a Visualforce page.
    – Jagular
    Commented Nov 10, 2014 at 20:11
  • I did creat a VF page with standard controller Contact and it goes to - sforce.one.navigateToURL("/003/e?accid=001XXXXXXX");. I am calling this page from my existing page on Opportunity. Still not prepopulating Account name. Is there anythign else that I need to do. Please explain in detail- possibly with example. Many Thanks.
    – Lx123
    Commented Nov 10, 2014 at 20:16
  • Jagular- Do you have an example to achieve this?
    – Lx123
    Commented Nov 13, 2014 at 21:04

1 Answer 1

3

IMO, this is not possible in Salesforce1 using the URL technique that you are trying. Bob Buzzard wrote a detailed blog post on this and I believe you may have already seen that (there's a comment as recent as yesterday asking a similar question).

The good thing though is that this is possible with the new Lightning framework using Component Attributes. You can read more about it here.

1
  • Thanks Gaurav. Is there no other way except using ligtning components? I am asking because somewhere reading posts on internet I get an idea that we can do it via VF page overriding. But not sure how it is applicable in my case. Any thoughts?
    – Lx123
    Commented Nov 18, 2014 at 14:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .