Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Actually it is commandlink and also i have tried that too by using action function I am calling a method in controller and setting the input text value as null . Still the result is same Commented May 3, 2017 at 10:54
  • the after clearing the value from javascript you can call <apex:actionfunction>,and from action function you can call call method to clear the values. Commented May 3, 2017 at 11:01
  • thats the thing i tried. Here is my code : public void actionFunMethod() { filterArray=null; } <a href="#" onClick="clearValue()" id="clearValue" style="display:none;"> Clear Filter <apex:actionFunction name="caall" action="{!actionFunMethod}"/> </a> Commented May 3, 2017 at 11:02
  • have you debug actionFunMethod method is it calling from Page?? Commented May 3, 2017 at 11:18
  • thans Avijit. It worked as exactly you suggested !!! Commented May 3, 2017 at 12:36