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
Mohan SelvamMohan Selvam 

how can i create a visuvalforce page with ok button to clear and how to invoke this in corresponding apex classes.

how can i create a visuvalforce page with ok button to clear and how to invoke this in corresponding apex classes.
Mani RenusMani Renus
clear means what you need to clear??

You can create VF and call apex method from vf like below

VF

<apex:page controller="apctrl">
<apex:commandbutton value="Ok" action="{!ok}" />
</apex:apge>

Apex

public class apctrl{
public pagereference ok(){
  //You should specify what you need to clear
}
}
Mohan SelvamMohan Selvam
Thank you for your kind response @MANI RENUS