# Struggling with pre-populating generated Froms

**URL:** <https://forum.mautic.org/t/struggling-with-pre-populating-generated-froms/5988>\
**Category:** General Discussion\
**Created:** [March 3, 2016, 9:24am UTC](https://forum.mautic.org/t/struggling-with-pre-populating-generated-froms/5988 "2016-03-03T09:24:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![helmut](https://avatars.discourse-cdn.com/v4/letter/h/cab0a1/32.png) [@helmut](https://forum.mautic.org/u/helmut)\
**Post date:** [March 3, 2016, 9:24am UTC](https://forum.mautic.org/t/struggling-with-pre-populating-generated-froms/5988/1 "2016-03-03T09:24:41Z")

</div>

Hi,  
  
  
  
I need to integrate a Form into my customers website with the auto- generation code. i want to pre populate the  
  
generated form (coursenumber) with some values, to implement a simple interface from the customers system to mautic.  
  
  
  
When i try something like:

  

In the customers page, it does not work. (It perfectly shows the form, but it does not populate the input fields)  
  
  
  
When testing the form:  
  
http://_mautic\_url_/s/forms/preview/1?email=test%[40example.com](http://40example.com)&kursnummer=34567  
  
It just works fine.  
  
  
  
Am I doing something wrong or is this not possible ?  
  
  
  
What are my options ?

---

<div class="post-metadata">

**Author:** ![helmut](https://avatars.discourse-cdn.com/v4/letter/h/cab0a1/32.png) [@helmut](https://forum.mautic.org/u/helmut)\
**Post date:** [March 3, 2016, 9:24am UTC](https://forum.mautic.org/t/struggling-with-pre-populating-generated-froms/5988/2 "2016-03-03T09:24:41Z")

</div>

Hi,

I need to integrate a Form into my customers website with the auto- generation code. i want to pre populate the  
generated form (coursenumber) with some values, to implement a simple interface from the customers system to mautic.

When i try something like:

In the customers page, it does not work. (It perfectly shows the form, but it does not populate the input fields)

When testing the form:  
http://_mautic\_url_/s/forms/preview/1?email=test%[40example.com](http://40example.com)&kursnummer=34567  
It just works fine.

Am I doing something wrong or is this not possible ?

What are my options ?

---

<div class="post-metadata">

**Author:** ![vln104](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vln104](https://forum.mautic.org/u/vln104)\
**Post date:** [March 3, 2016, 5:32pm UTC](https://forum.mautic.org/t/struggling-with-pre-populating-generated-froms/5988/3 "2016-03-03T17:32:22Z")

</div>

hi @helmut, I believe the current form pre population is done by reading query parameters in the URL. This would explain why it works when putting the preview URL in the browser.

I’ve written some code in this PR which might do what you need but I’m not sure because I’ve never integrated Mautic forms into other websites. You may want to test it though. Thanks

[https://github.com/mautic/mautic/pull/1363](https://github.com/mautic/mautic/pull/1363)

---

<div class="post-metadata">

**Author:** ![helmut](https://avatars.discourse-cdn.com/v4/letter/h/cab0a1/32.png) [@helmut](https://forum.mautic.org/u/helmut)\
**Post date:** [March 3, 2016, 5:56pm UTC](https://forum.mautic.org/t/struggling-with-pre-populating-generated-froms/5988/4 "2016-03-03T17:56:36Z")

</div>

Hi vln104, Thank you very much I will be looking into that!
