Activity Forums Salesforce® Discussions How to call method in VF page in Salesforce?

  • Anjali

    Member
    August 19, 2020 at 8:15 am

    We have a attribute called action in the <apex:commnadbutton> tag in the VF page.
    <apex:commandButton action=”{!save}” value=”Save” id=”theButton”/>.

  • Manish

    Member
    August 19, 2020 at 3:08 pm

    Action methods can be called from page markup by using {! } notation in the action parameter of one of the following tags: <apex:commandButton> creates a button that calls an action. <apex:commandLink> creates a link that calls an action.

  • Ratnesh

    Member
    August 20, 2020 at 5:23 am

    When we click on the "click" button it will invoke pageReference show() method. pageReference is the return type of array method that we have called from visualforce page. So Whenever you want to redirect from one page to another page or want to change some values by calling methods from the apex controller class.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos