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
RajeevlsHydRajeevlsHyd 

Pass parameters in the URL from VF page

I want to pass parameters for contact record in the url through a vf page .. Any idea how to pass .

For ex :  

https://cs15.salesforce.com/apex/SearchForm?contactId=003e000000Aplmn&employees=10 

 

When we pass employees  = 10 , the field should be populated with 10 on the search form... 

Please suggest

Satish_SFDCSatish_SFDC
Get the ID of the field and add it to the url.
You have to see the HTML of the vf page and see what is the ID assigned to this employees field.
Most of the times it is the Salesforce ID.

The url would be:
https://cs15.salesforce.com/apex/SearchForm?contactId=003e000000Aplmn&<field id>=10

Regards,
Satish Kumar