• ravi1.388133693242557E12
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
  HI

I was trying to call a custom javascript function on click which inturn calls the action function I would like to know if I am doing it right. its not going into my controller function.
This is what I want to do
 
function save_clicked() // custom function
{
// logic(this part works)
  saveOrder();// call to the action function
}         

<apex:actionFunction name="saveOrder" action="{!SaveProgramOrderAndItems}" />
       <apex:pageBlockButtons location="bottom">
          
  <apex:commandButton value="Save and Create Order" onclick="save_clicked"/>