You need to sign in to do that
Don't have an account?
vijayabhaskarareddy
how to use onclick in vf page
i have two apex methods Ist return tyep boolean and 2nd return type pagereference
now my requirement is when i click on submit first goto boolean function and check true or false
if it is true show eler message else execute 2 nd method which perform update (DML) and return same page
now my requirement is when i click on submit first goto boolean function and check true or false
if it is true show eler message else execute 2 nd method which perform update (DML) and return same page
So your page might look like:
And your controller like:
A button that checks a boolean, does DML stuff and/or redirects! Simple.