# Passing a Field value in a URL

**URL:** <https://forum.mautic.org/t/passing-a-field-value-in-a-url/2023>\
**Category:** Product Support\
**Created:** [July 6, 2015, 8:55pm UTC](https://forum.mautic.org/t/passing-a-field-value-in-a-url/2023 "2015-07-06T20:55:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emillerphx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/emillerphx/32/24_2.png) [@emillerphx](https://forum.mautic.org/u/emillerphx)\
**Post date:** [July 6, 2015, 8:55pm UTC](https://forum.mautic.org/t/passing-a-field-value-in-a-url/2023/1 "2015-07-06T20:55:03Z")

</div>

First off, I’m really liking this tool. It has been great so far.  
  
  
  
I would like to do a little survey of customers. Right now I can ask them for their email, but it seems like I should be able to send them an email with a link to the form that contains a parameter ([http://mysite.com/mautic/f1?email=joe@foo.com](http://mysite.com/mautic/f1?email=joe@foo.com)) and then have that value just stuck in to a field. Either one the user can’t see or populate a field on the form.  
  
  
  
I searched and searched to see if this already exists, and could not find anything. Any suggestions? I’m not a great programmer but I guess I could add my own script to do this. But I was hoping it was a feature I just can’t find.  
  
  
  
Thanks,  
  
  
  
Eric

---

<div class="post-metadata">

**Author:** ![emillerphx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/emillerphx/32/24_2.png) [@emillerphx](https://forum.mautic.org/u/emillerphx)\
**Post date:** [July 6, 2015, 8:55pm UTC](https://forum.mautic.org/t/passing-a-field-value-in-a-url/2023/2 "2015-07-06T20:55:03Z")

</div>

First off, I’m really liking this tool. It has been great so far.

I would like to do a little survey of customers. Right now I can ask them for their email, but it seems like I should be able to send them an email with a link to the form that contains a parameter ([http://mysite.com/mautic/f1?email=joe@foo.com](http://mysite.com/mautic/f1?email=joe@foo.com)) and then have that value just stuck in to a field. Either one the user can’t see or populate a field on the form.

I searched and searched to see if this already exists, and could not find anything. Any suggestions? I’m not a great programmer but I guess I could add my own script to do this. But I was hoping it was a feature I just can’t find.

Thanks,

Eric

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 9, 2015, 6:56am UTC](https://forum.mautic.org/t/passing-a-field-value-in-a-url/2023/3 "2015-07-09T06:56:15Z")

</div>

Hi Eric,

this is very good idea. It won’t be as simple, because there are 3 different ways how Mautic Forms are loaded:

1. Every Mautic Form as a public preview on [http://your-mautic/form/ID](http://your-mautic/form/ID)
2. Mautic Form can be inserted as plain HTML into any website. The part of the HTML is JS, so a field could be probably populated by JS.
3. Mautic Form can be inserted into a website with JS script. Field could be also preset by JS as from 2nd point.

Could you create a feature request in [https://github.com/mautic/mautic/issues](https://github.com/mautic/mautic/issues) ? It will help developers to track the request better.

---

<div class="post-metadata">

**Author:** ![laurentm](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@laurentm](https://forum.mautic.org/u/laurentm)\
**Post date:** [March 31, 2017, 7:09am UTC](https://forum.mautic.org/t/passing-a-field-value-in-a-url/2023/4 "2017-03-31T07:09:52Z")

</div>

I am looking to do the same.  
I have a widget plugin on wordpress page where i invite client to input firstname and email only, but i also need other info.  
I want to push them to fill 2 field only and to push submit so I can get them in the DB, then to redirect them into a more complete form where the two fields are already present but would be prefilled thanks to passing value trough ulr.  
Does this has been solved ?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/passing-a-field-value-in-a-url/2023/5 "2020-02-02T22:59:25Z")

</div>


