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
Nayana PawarNayana Pawar 

Visualforce page <apex:include > issue.

When I tried to do this with <apex:include> I got the following error: 
" Error: 'apex:form' component cannot be nested within form tags " 
If I remove form tag from that page,it contains lots of components that can not survive without form.
For instance if I delete the form tag then it is showing the error like 
" Error: <apex:commandButton > (under <apex:page>) must occur between <apex:form></apex:form> tags. "

Can anyone please help me for this.
ManojjenaManojjena
Hi Nayana,

TRy to add the <apex:include> out side the form and below the <apex:page > your probelm will resolve .

Please let me know if it helps .

Thanks 
Manoj
Abhi_TripathiAbhi_Tripathi
Can you please post the Visualforce code, that will help more to resolved your issue 

Thanks
Amit Chaudhary 8Amit Chaudhary 8
Hi Nayana,

I hope you are using form tag in "Composition page" and your main page also.
Please remove the form tag from "Composition page" or Main page then it will work.
Please use <apex:form tag only one time
Please let us know if this will help you


http://amitsalesforce.blogspot.in/2015/02/defining-templates-with-apexcomposition.html