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
AnshiiAnshii 

Autopopulate the field values

Hi Everyone ,
myscenario is display the inputfeilds from vf page using customcontroller onpageload the fields should populate and  byclicking on button ,page should be shown as pdf .please help me out with an example

Thanks in Advance.
AbhinavAbhinav (Salesforce Developers) 
Hi Arroju,

Have you checked these example?
https://salesforce.stackexchange.com/questions/87763/auto-populate-fields-on-custom-visualforce-page-with-information-from-standard-p

http://himanshurana.in/populate-visualforce-page-fieldvalues/

Thanks!

 
AnshiiAnshii
Thanks @Abhinav for quick reply .yeah I have seen that example .but without using lookup the feilds should populate and by clicking on button the vf page and feilds which are populated should display as PDF format. 
AbhinavAbhinav (Salesforce Developers) 
So are you trying to hardcode the field value??
to render a vf page as pdf you can take refrence from below link

https://www.infallibletechie.com/2019/03/advanced-pdf-to-render-visualforce-page.html

https://www.biswajeetsamal.com/blog/visualforce-page-render-as-advanced-pdf/

Thanks!