function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Swamy PSwamy P 

Unable to fetch ID from the URL in salesforce1

Hi Team,

By using Publisher Action, I was trying to show one field in the visualforce page based on the ApexPages.CurrentPage().getParameters().get('id'); from the class.
I was able to show the Visualforce Page publisher Action in the mobile, but when i'm clicking on it following error is appearing. Is anyone have any idea, how to resolve this issue??
User-added image
Andy BoettcherAndy Boettcher
Salesforce1, along with the new Lightning Experience, does not use the same URL parameters that Visualforce uses.  You will want to capture the recordId using a backend Apex controller where you can leverage the standardController constructor.
Swamy PSwamy P
Hi Andy,

Thanks for your valuable solution. Now i was able to fetch the record ID but unable to show the result in inputfields. Is there anything which i missed?
<apex:pageBlockSection columns="1">
    <apex:outputField value="{!cnf.Name}"/>
     <apex:inputfield value="{!cfatnd.Attendee__c}"/>
</apex:pageBlockSection>
I just added the above input and output fields in vf page. Both are appearing in ouput manner. So how to show input fields in Publisher Action?

Please update me!!