+ Start a Discussion
Sandra WicketSandra Wicket 

Visualforce PDF: add second visualforce page

Hey Guys, 

is it possible to append a visualforce page to another one ? One page is just a text file. To reduce the lines of Code of the "real" visualforce page, i am looking for a way to merge these two pages. Is there a simple way to do this ? 

Best Answer chosen by Sandra Wicket
Manish  ChoudhariManish Choudhari
Hi Sandra,

Yes, this is possible. You need to use <apex:include> tag for the same. 
Check out this link: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_include.htm

Let me know if this helps.

**Please mark this as best answer if this answers your query.**

Manish Choudhari
14x Certified Salesforce Architect
Certification link:
My Blog: http://sfdcfacts.com/
Youtube Channel: https://www.youtube.com/SFDCFacts
LinkedIn: https://www.linkedin.com/in/manish-choudhary/
Trailhead: https://trailhead.salesforce.com/en/me/manish-choudhari
Twitter: https://mobile.twitter.com/manish_sfdc