You need to sign in to do that
Don't have an account?
AichaSF
VisualForce - Search History delete
Hello,
I have a search box in my visualforce page and I want to add a control on the search history. The idea is to automatically delete the search history.
<input type="text" id="myInput" placeholder="Rechercher" style="margin-bottom : 5px;width:100%"/>
Any help please.
I have a search box in my visualforce page and I want to add a control on the search history. The idea is to automatically delete the search history.
<input type="text" id="myInput" placeholder="Rechercher" style="margin-bottom : 5px;width:100%"/>
Any help please.
Assuming, you have an input text box used to search on the visual force page, and clear all search results using a command button.
I have tested the same in my org and it's working fine.
Following technique with an action-support worked. I rerender the page block.
Visual Force Page: Method: Hope this helps.
Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.
Thanks,
Nagendra
In visualforce page I have this script related to inputtext
<script>
$(document).ready(function(){
console.log("in");
$("#myInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("[id$='partTable'] tr").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});
</script>
I need not save any search in this inputtext.
Have you any ideas.