You need to sign in to do that
Don't have an account?
shiv@SFDC
How to call standard save method using java script button on standard page.
Hi All,
As we know in custom VF page following code woks perfectly and calls the stndard save method. if JS function return true. else it will not call standard save method.
Can we acheive the same thing using standard JS button on standard VF Page ? If yes. Please provide some code sample.
Thanks.
As we know in custom VF page following code woks perfectly and calls the stndard save method. if JS function return true. else it will not call standard save method.
<apex:commandButtion action{! Save} onclick="return validate()" /> <script> function validate() { if(true){ return true ; } else{ return false; } } </script>
Can we acheive the same thing using standard JS button on standard VF Page ? If yes. Please provide some code sample.
Thanks.
Sarfaraj
You have to use actionfunction,
--Akram shiv@SFDC
Functionality is working fine for me. My question is that can we do it using standard java script button.
Sarfaraj
Seems like I misunderstood your requirement. Can you please elaborate with an example how you are going to create this javascript button? I will try to help you on calling the Save action from there.