# Can't pre-fill form fields with procedure described in Mautic documentation

**URL:** <https://forum.mautic.org/t/cant-pre-fill-form-fields-with-procedure-described-in-mautic-documentation/10919>\
**Category:** Product Support\
**Created:** [August 21, 2019, 12:35pm UTC](https://forum.mautic.org/t/cant-pre-fill-form-fields-with-procedure-described-in-mautic-documentation/10919 "2019-08-21T12:35:05Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [April 24, 2021, 4:14pm UTC](https://forum.mautic.org/t/cant-pre-fill-form-fields-with-procedure-described-in-mautic-documentation/10919/11 "2021-04-24T16:14:34Z")

</div>

acording with this code the name of the field is campaign not accountType, so in the URL you should have ?campaign=ProspectFreeClass1,

what my script will do is look at all the parameters passed in the URL (eg: campaign). then check if there is a mautic form field with that name (or name=“mauticform[campaign]”) and set the value of the field in this example ProspectFreeClass, the user is free to change the form field (unless you define the field as “readonly” or “hidden” , and the value will be send to mautic server once the user submits the form

---

_[View the full topic](https://forum.mautic.org/t/cant-pre-fill-form-fields-with-procedure-described-in-mautic-documentation/10919)._
