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

how to get data from VF page to object creation page

Hi All,
I have a Object A,VF page and a controller on Object A. There are few fields in Object A including custom field abc__c.
In VF page i have a fied xyz  and two buttons save , cancel .when i click save button it should redirect to Object A creation page and insert the value xyz. how it is possible.
Thank you.
Hi Venkatesh,

Please follow below step:
1. In the vf page when input fields are populated and button is pressed. 
2. Call redirect() method in Controller. 
3. The controller will build the URL to be re-directed. 
4. Open the record creation page, inpect element on field. You will find unique name copy this name. 
5. Add the field API name in parameter along with Object API name. 

See example below for auto-populating Account Name:
I have one custom field for address name: acc17street


Hope this helps.