---
title: "How to hide/unhide clearicon from textbox in sencha?"  
description: "How to hide/unhide clearicon from textbox in sencha?"  
author: "Royce Roy"  
published: 2013-06-03  
updated: 2013-06-03  
canonical: https://www.mindstick.com/forum/974/how-to-hide-unhide-clearicon-from-textbox-in-sencha  
category: "sencha touch"  
tags: ["sencha touch"]  
reading_time: 1 minute  

---

# How to hide/unhide clearicon from textbox in sencha?

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances)!\
I would like to hide **clearicon** from **[textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview)** in **sencha** [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) through code. How to do it? [Please provide sample](https://www.mindstick.com/forum/159382/how-can-i-change-an-element-s-class-with-javascript-please-provide-sample) code.\
Thanks in advance. \

## Replies

### Reply by AVADHESH PATEL

Hi Royce,\
You can add this to you global CSS\
**.x-field-clearable.clear-icon-hidden .x-field-input .x-clear-icon {** **display: none;****}****\**and then when you want to hide the clear icon of a field you just get your field and do\
**field.addCls('clear-icon-hidden');****\**Hope this helpful for you.


---

Original Source: https://www.mindstick.com/forum/974/how-to-hide-unhide-clearicon-from-textbox-in-sencha

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
