---
title: "Extjs - How to open edit form on mybtn click?"  
description: "Extjs - How to open edit form on mybtn click?"  
author: "Anonymous User"  
published: 2016-04-28  
updated: 2016-04-28  
canonical: https://www.mindstick.com/forum/34116/extjs-how-to-open-edit-form-on-mybtn-click  
category: "sencha extjs"  
tags: ["javascript", "sencha"]  
reading_time: 1 minute  

---

# Extjs - How to open edit form on mybtn click?

I m new in [Extjs](https://www.mindstick.com/forum/34106/how-to-use-extjs-grid) programming. I have created an edit [form](https://www.mindstick.com/forum/6/multi-form-mfc-application), when the [user clicks](https://answers.mindstick.com/qa/34556/if-a-user-clicks-all-the-google-ads-on-my-site-is-it-foul) the edit button then that edit form will show. the [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) I am using is provided below:\

```
edit_window_xtype: 'Name of the Window',
```

the above code is working perfectly, but here is some issue, form will call when the [button is clicked](https://www.mindstick.com/forum/157821/write-a-jquery-code-that-selects-all-the-checkboxes-in-a-form-when-a-select-all-button-is-clicked) but not when user double clicks a field.\
code is below:\

```
editbtn_onClick: function (mybtn) {    Ext.create('window name').show();},
```

but it is not working. Please help me.


---

Original Source: https://www.mindstick.com/forum/34116/extjs-how-to-open-edit-form-on-mybtn-click

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
