function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AK_SmithAK_Smith 

apex:actionPoller without interval

Hello! is there any option to use apex:actionPoller  without interval?
I need to execute action immediately

My code is
<apex:actionPoller action="{!save}" interval="5" oncomplete="reload()"/>
Aman MalikAman Malik
Hi,
If you want to execute method immediately, then why you are using actionpoller.
you should make use of actionfunction which would execute immediately. Below is the help link for the same:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionFunction.htm

Please like the answer and mark it as best if this helps.

Thanks,
Aman