function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:pageBlock title="Insert Account" id="theblock"> <apex:pageblocksection columns="1" id="fields"> <apex:inputField value="{!acc.Name}" id="name" /><br/> <apex:inputField value="{!acc.Phone}" id="phone" /><br/> </apex:pageblocksection> Apex Controller---> public class ConfirmAccountInsertion { public Account acc{get;set;} public void saveRecord() { if((acc.Name!=null || acc.Name!='' ) && (acc.Phone!=null || acc.Phone!='') { insert acc; } } }
I've gone through your requirement and you can refer below code to know how to validate in apex controller:VF Page:--->
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com