# Passing data from custom widget to form

**URL:** <https://community.ofelia.com/t/passing-data-from-custom-widget-to-form/9994>\
**Category:** Q&A\
**Created:** [1 February 2020 21:35 UTC](https://community.ofelia.com/t/passing-data-from-custom-widget-to-form/9994 "2020-02-01T21:35:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miguel.aguilera.croa](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@miguel.aguilera.croa](https://community.ofelia.com/u/miguel.aguilera.croa)\
**Post date:** [1 February 2020 21:35 UTC](https://community.ofelia.com/t/passing-data-from-custom-widget-to-form/9994/1 "2020-02-01T21:35:15Z")

</div>

Hello, I have a custom widget made with pure javascript and html (no&nbsp;Angular) that manipulates&nbsp;an array of objects that I want to pass on to the form for it to process it and send it to fromOutput.

I have heard other users pass the data used in custom widgets by manipulating the DOM via query selectors, but I have found this method unreliable.

If anyone knows how to, I would greatly appreciate any help.
