Activity Forums Salesforce® Discussions How can i call Apex Controller Method from HTML tag?

  • Saurabh

    Member
    May 12, 2017 at 1:52 pm

    Hi Suraj

    So if you want to work with a "plain" HTML (for example to reduce the page view state size) you can use JavaScript Remoting controls or just attach an action function to your button:

    <input type="button" name="submit" id="searchSubmit" onclick="doSomething();"/>

    <apex:actionFunction name="doSomething" action="{!myApexMethod}" reRender="somePanel"/>

    Hope it may help you

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos