Activity Forums Salesforce® Discussions How to populate values in vf page from formula field?

  • Prakhar

    Member
    June 13, 2016 at 2:39 pm

    Hii Danna,

    In the VF page that you are using, you will have to assign the value from the url to that particular {get;set;} field of Vf page.

    For Example: Let us suppose your URL looks something like this:

    /apex/Rforce_AccountSearch_Page?caseId=”&Id& "&lastname=" & LastName

    Then use the below code in your VF page:-

    <apex:inputText value="{!lastname}">

    Then in Apex:

    String lastName{get;set;}

    and get the parameters from the URL using

    ApexPages.CurrentPage().getParameters.get('lastname');

    and assign the lastname {get;set;} of the page with the above value i.e.

    lastname = ApexPages.CurrentPage().getParameters.get('lastname');

    Hope that resolves your issue.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos