Skip to main content
Nintex Community Menu Bar
Solved

SmartForm rule to clear Quick Search box in List View?

  • March 28, 2017
  • 2 replies
  • 39 views
  • Translate

Forum|alt.badge.img+8

Hi.  

 

I'm creating a smart form with a button "Reset and Refresh" that will clear any of the radio button groups, drop downs, etc. that i built into the from in order to filter data....That works great.

 

I'd love for the same button to ALSO clear out any value that's in the "Quick Search" field on the view.  I can't seem to make that work.  I've tried having the rule perform a clear method on the view, but the value that the user had types into the quick search field remains.  

 

Is there a way to do this?

 

Rob

 

 

Best answer by Albarghouthy

Hi Rob,


 


It is possible, you will need to use Jquery to clear the search text box.


 


Add a data label and check Literal property.


Add an expression in your view/form and enter the following script:


 


 


<script type="text/javascript">$(document).ready(function(){ $('input[id$="_quickSearchTxt"]').val('');});</script>

When your Reset button is clicked , transfer the script/expression  to the data label then clear the data label.


 


 


Note: Clearing the data label after transferring the script will give you the ability to execute the script again but if you keep the value/script in the data label then transfer it again will not trigger it .


 


Hope this helps.

View original
Did this topic help you find an answer to your question?

Albarghouthy
Forum|alt.badge.img+16

Hi Rob,


 


It is possible, you will need to use Jquery to clear the search text box.


 


Add a data label and check Literal property.


Add an expression in your view/form and enter the following script:


 


 


<script type="text/javascript">$(document).ready(function(){ $('input[id$="_quickSearchTxt"]').val('');});</script>

When your Reset button is clicked , transfer the script/expression  to the data label then clear the data label.


 


 


Note: Clearing the data label after transferring the script will give you the ability to execute the script again but if you keep the value/script in the data label then transfer it again will not trigger it .


 


Hope this helps.

Translate

Forum|alt.badge.img+8

That works incredibly well!!!!  Thank you so much!

 

Rob

 

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings