# How to save the referring page in a form

**URL:** <https://forum.mautic.org/t/how-to-save-the-referring-page-in-a-form/11100>\
**Category:** Product Support\
**Created:** [September 8, 2019, 9:43pm UTC](https://forum.mautic.org/t/how-to-save-the-referring-page-in-a-form/11100 "2019-09-08T21:43:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bs1](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@bs1](https://forum.mautic.org/u/bs1)\
**Post date:** [September 8, 2019, 9:43pm UTC](https://forum.mautic.org/t/how-to-save-the-referring-page-in-a-form/11100/1 "2019-09-08T21:43:11Z")

</div>

**Your software**  
My Mautic version is:2.15  
My PHP version is:7.0

**Your problem**  
My problem is:  
I have tried to implement the technique described here: [https://mautic.com/help/save-referring-page-form/](https://mautic.com/help/save-referring-page-form/)  
However the ‘ref’ field in the form is not being populated. My form is contained in a full page pop-up focus item which triggers to unidentified visitors on any of our website pages after 40 seconds. So it is not a form fixed to certain page. Perhaps this could be he issue… although it shouldn’t.

These errors (lots of them - identical) are showing in the log (The y have been showing for a while now and I did not paid much attention to them):  
AH01071: Got error 'PHP message: PHP Notice: Undefined variable: submissions in /home/…/app/bundles/FormBundle/Views/Builder/form.html.php on line 59\nPHP

Any suggestions on why the implementtation is not working? Thank you.

---

<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:** [January 25, 2021, 8:53pm UTC](https://forum.mautic.org/t/how-to-save-the-referring-page-in-a-form/11100/2 "2021-01-25T20:53:01Z")

</div>


