Hi, I have one vf page in that perform two actions like save and saveandnext in one action some fields are required but another action that fields are not required..How can achieve this functionality?/
I have understand your requirement. My suggestion is to create 2 Visual force pages and One controller is required. In my below example shows to write 2 different actions.
You can access Different type of fields from Visual force pages by using below action <apex:commandButton value="Save" action="https://c.ap2.visual.force.com/apex/Community_Action1"/> <apex:commandButton value="Save and Next" action="https://c.ap2.visual.force.com/apex/Community_Action2"/>
Please let me know if it helps you/ Any help required.
I have understand your requirement.
My suggestion is to create 2 Visual force pages and One controller is required.
In my below example shows to write 2 different actions.
You can access Different type of fields from Visual force pages by using below action
<apex:commandButton value="Save" action="https://c.ap2.visual.force.com/apex/Community_Action1"/>
<apex:commandButton value="Save and Next" action="https://c.ap2.visual.force.com/apex/Community_Action2"/>
Please let me know if it helps you/ Any help required.
Thanks & Regards
Madhukar_Heptarc