This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 26, 2011, 6:06 PM
24 Posts

Whats the best way to clear a text input field.

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
Sometimes it's the simple things that trip me up.
 
I'm having trouble doing something basic, clearing the contents of a text input field when something changes somewhere else on the form, or when a validation changes something in a managed bean.
 
What the "best" way yo accomplish this in both Server Side Java Script and Client Side Java Script. 
 
Thanks for you help. 
 
-- Jeff 
Sep 27, 2011, 1:22 PM
57 Posts
Re: Whats the best way to clear a text input field.
put a output script control inside of the area that gets refresh, this script will run every time you refresh that area, you can clear the input field value with that script
 
regards

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal