# Plugin fill field programmatically

**URL:** <https://forum.shopware.com/t/plugin-fill-field-programmatically/48618>\
**Category:** International (English Only)\
**Tags:** programming\
**Created:** [3. Oktober 2017 um 18:39 UTC](https://forum.shopware.com/t/plugin-fill-field-programmatically/48618 "2017-10-03T18:39:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kegg](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@Kegg](https://forum.shopware.com/u/Kegg)\
**Post date:** [3. Oktober 2017 um 18:39 UTC](https://forum.shopware.com/t/plugin-fill-field-programmatically/48618/1 "2017-10-03T18:39:39Z")

</div>

Hi,

&nbsp;

I am learning the basics of shopware plugin creation and need to fill some fields using incoming javascript arrays and am stuck on the best way to do so.

&nbsp;

I feel stupid for asking this question because I am sure there is a very basic / neat way to do what I want but I just cannot think of it.

&nbsp;

If I was just doing basic HTML/JS I would just do .innerHTML edits which could possibly work with shopware too, but I do not feel like thats the cleanest way to do it, and could just get messy quickly.

&nbsp;

I am hoping to be able to do it via some Ajax but again can’t think of how.

&nbsp;

Any advice you may be able to offer is appreciated

&nbsp;

Thanks in advanced

Ian

---

<div class="post-metadata">

**Author:** ![irfanh94](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@irfanh94](https://forum.shopware.com/u/irfanh94)\
**Post date:** [4. Oktober 2017 um 07:44 UTC](https://forum.shopware.com/t/plugin-fill-field-programmatically/48618/2 "2017-10-04T07:44:33Z")

</div>

For the frontent just use jQuery func to insert the field value, for example: $(“input#some\_field”).val(‘some\_value’);
