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
Tejas Wadke 5Tejas Wadke 5 

How to get URL parameters in visualforce page

Hello,

Below is my URL 
http://surveybuilder-developer-edition.na30.force.com/DynamicComponent?id={!Contact.Feedback_ID__c}&fullname={!URLENCODE(Contact.FirstName)}{!URLENCODE(Contact.LastName)}&email={!URLENCODE(Contact.Email)}&phone={!URLENCODE(Contact.Phone)} 

I want to get the URL parameters fullname,email and phone in visualforce page.
Help on this please.

Thanks,
Tejas
 
Ajay mishraAjay mishra
Hi Tejas,

You may try the below URL :

{!URLENCODE(http://surveybuilder-developer-edition.na30.force.com/DynamicComponent?id={!Contact.Feedback_ID__c}&fullname={!Contact.FirstName}+''+{!Contact.LastName}&email={!Contact.Email}&phone={!Contact.Phone})}
 
SandhyaSandhya (Salesforce Developers) 
Hi,

Tejas Wadke,

Below code is useful to get URL parameters

<apex:inputField value="{!$CurrentPage.parameters.Paramtervalue}"/>

 
<apex:page standardController="somecontroller">
    <apex:form >
        <apex:pageBlock >
        <apex:pageBlockSection columns="1">
             <apex:inputField value="{!CurrentPage.parameters.FullName}"/>
    </apex:pageBlockSection>
        </apex:pageBlock>  
    </apex:form>
    </apex:page>
Please refer below link to have a bright idea.

http://www.davehelgerson.com/?p=334
 
Please accept my solution as BestAnswer if my solution was helpful.This will make it available for other as the proper answer.If you felt i went above and beyond u can give me kudos using star.
 




Thanks and Regards
sandhya