• Akshay Kapadia
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi guys, I'm totally new to salesforce, just started. I need your help in, how can I create new record of custom obejct from visualforce page by clicking on custom button?

So I've one custom object called; 'project' and  other 'mapview' and i got visualforce page attached to mapview object and in that page i have custom button, on that button click i want to create new project record. I've gone through few solutions but couldn't understand. 

So posting here and asking for help.

here is what I'm doing:

<apex:page standardController="MapView__c" wizard="true"  >
    
    <apex:pageBlock >
        <apex:form >
                   <apex:commandButton id="btnCreateProject" action="{!URLFOR($Action.MapView__c.Create_New_Project)}" value="Create a project"/>

        </apex:form>
    </apex:pageBlock>
    
</apex:page>
Hi guys, I'm totally new to salesforce, just started. I need your help in, how can I create new record of custom obejct from visualforce page by clicking on custom button?

So I've one custom object called; 'project' and  other 'mapview' and i got visualforce page attached to mapview object and in that page i have custom button, on that button click i want to create new project record. I've gone through few solutions but couldn't understand. 

So posting here and asking for help.

here is what I'm doing:

<apex:page standardController="MapView__c" wizard="true"  >
    
    <apex:pageBlock >
        <apex:form >
                   <apex:commandButton id="btnCreateProject" action="{!URLFOR($Action.MapView__c.Create_New_Project)}" value="Create a project"/>

        </apex:form>
    </apex:pageBlock>
    
</apex:page>