• parsa033
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
I want to create a button that creates an opportunity with defined fields. This is what I got so far:
 
window.parent.location.href="{!URLFOR($Action.Opportunity.New
,Opportunity.Id, [opp4= Account.Name, opp3="ProductName -  "&Account.Name, opp7= "555", opp9= TEXT(MONTH(Today()+7))&"/"&TEXT(DAY(Today()+7))&"/"&TEXT(YEAR(Today()+7)) , opp11="Qualified Lead",p3="012500000009CJ7"])};"
 
This works. it takes me to the opportunity creation page though with all the fields that are defined filled up, but I have to still click on the create buttons.
 
Is there a way that I can do this and make it automatically create the opportunity and send me to the opportunity page rather than showing me the create form all over again.