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
VF Page: <apex:page controller="CreateAccountController"> <apex:form> <apex:pageblock> <apex:pageblocksection> <apex:inputfield value="{!acc.Name}"/> <apex:inputfield value="{!acc.Accountnumber}"/> </apex:pageblocksection> <apex:commandbutton action="{!SaveMethod}" value="Save"/> </apex:pageblock> </apex:form> </apex:page> Apex Controller: public class CreateAccountController{ //Prpoerties public Account acc {get;set;} //Constructor public CreateAccountController(){ //Instances acc = new Account(); } //Save Method public PageReference SaveMethod(){ Insert acc; return null; } }
Can you please provide more information?
on which object you need VF page?
for more details about VF pages, please go through the trailhead modulehttps://trailhead.salesforce.com/content/learn/modules/visualforce_fundamentals
If this helps, Please mark it as best Answer
Thank you!!
Please refer the below links and try.
https://salesforce.stackexchange.com/questions/100151/how-can-i-receive-data-from-the-formusing-html-css-in-visualforce-page-and-a
https://developer.salesforce.com/forums/?id=906F000000097NJIAY