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
Sandy singhSandy singh 

get custom object data on our exsiting form from Custom object

Hi All,

 

  How can i will get custom object data on our exsiting form from Custom object, so user doesn’t have refill all the fields again.

 

Regards,

Sandesh

Ankit AroraAnkit Arora

If your form is an visualforce page then you can use standard controller of the particular object and just need to pass the record Id in URL. Make sure all your fields are binded with the controller object (input fields). After using standard controller and passing the record Id in URL (/apex/yourPageName?id=recordId) all the values will get prefill.

 

Another approach (if you don't want to go with standard controller) you just need to bind all values with the object instance as input field and need to initialize that object instance with your record.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page