---
title: "How to add data into the POST method of a form in ExtJS?"  
description: "How to add data into the POST method of a form in ExtJS?"  
author: "Anonymous User"  
published: 2016-05-19  
updated: 2016-05-19  
canonical: https://www.mindstick.com/forum/34130/how-to-add-data-into-the-post-method-of-a-form-in-extjs  
category: "sencha extjs"  
tags: ["javascript", "sencha", "sencha cmd"]  
reading_time: 1 minute  

---

# How to add data into the POST method of a form in ExtJS?

I have created a [simple](https://yourviews.mindstick.com/story/1469/5-simple-ways-to-stay-fit-amp-healthy) form using [ExtJS](https://www.mindstick.com/forum/34106/how-to-use-extjs-grid), my [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) is I [am getting](https://www.mindstick.com/forum/34179/i-am-getting-error-while-assigning-the-data-to-the-array-list) problem to be sent [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science) through [POST method](https://www.mindstick.com/forum/34628/server-get-post-method-in-php). I [google](https://www.mindstick.com/articles/43833/google-lighthouse-and-how-is-it-changing-the-way-we-development-and-design-websites) it and tried using this code:\

```
form.setValues({    name: value;})
```

but, its not sending data or we can say that not setting the [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) to be sent.\
Please, [guide](https://www.mindstick.com/articles/44463/business-to-business-vat-reclaiming-a-guide-for-your-employees) me how can I [solve this issue](https://answers.mindstick.com/qa/95726/i-am-getting-we-re-working-on-setting-you-up-on-my-google-adsense-for-a-very-long-time-how-should-i-solve-this-issue).\
Thank you.

## Replies

### Reply by Tarun Kumar

When you submit the form set the properties into params: , below I have provided an example:\

```
this.myWindow.get(0).getForm().submit({  url : 'path_for_action',  params : {name : value},  success : function(form, action) {     // do your stuff here  },  failure : function(form, action) {     // do your stuff here  }}
```

I hope it will be helpful for you.


---

Original Source: https://www.mindstick.com/forum/34130/how-to-add-data-into-the-post-method-of-a-form-in-extjs

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
