# Error adding "select" field in a form

**URL:** <https://forum.mautic.org/t/error-adding-select-field-in-a-form/8274>\
**Category:** Product Support\
**Created:** [April 21, 2017, 4:50pm UTC](https://forum.mautic.org/t/error-adding-select-field-in-a-form/8274 "2017-04-21T16:50:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordiplanassauter1](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jordiplanassauter1](https://forum.mautic.org/u/jordiplanassauter1)\
**Post date:** [April 21, 2017, 4:50pm UTC](https://forum.mautic.org/t/error-adding-select-field-in-a-form/8274/1 "2017-04-21T16:50:56Z")

</div>

Hi,  
  
I just a beginner in Mautic, only a marketing user, not a developer. Once I tried to build a “select” type custom field in a Form I have the follwing error:  
  
  
  
[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Undefined index: properties - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php - at line 6 [] []  
  
[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Trying to get property of non-object - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php - at line 9 [] []  
  
[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Trying to get property of non-object - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php - at line 27 [] []  
  
[2017-04-21 17:21:54] mautic.WARNING: PHP Warning - Invalid argument supplied for foreach() - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php - at line 27 [] []  
  
[2017-04-21 17:21:54] mautic.ERROR: SymfonyComponentDebugExceptionFatalThrowableError: Type error: Argument 1 passed to SymfonyBundleFrameworkBundleTemplatingHelperFormHelper::errors() must be an instance of SymfonyComponentFormFormView, null given, called in /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php on line 31 - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/vendor/symfony/framework-bundle/Templating/Helper/FormHelper.php - at line 205 [] []  
  
  
  
Any help where is the problem and how to fix it?  
  
  
  
Mauitc verion is 2.7.1.  
  
pHp 7.9.18  
  
  
  
Thanks in advance for any help.  
  
Jordi

---

<div class="post-metadata">

**Author:** ![jordiplanassauter1](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jordiplanassauter1](https://forum.mautic.org/u/jordiplanassauter1)\
**Post date:** [April 21, 2017, 4:50pm UTC](https://forum.mautic.org/t/error-adding-select-field-in-a-form/8274/2 "2017-04-21T16:50:56Z")

</div>

Hi,  
I just a beginner in Mautic, only a marketing user, not a developer. Once I tried to build a “select” type custom field in a Form I have the follwing error:

[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Undefined index: properties - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php - at line 6 [] []  
[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Trying to get property of non-object - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php - at line 9 [] []  
[2017-04-21 17:21:54] mautic.NOTICE: PHP Notice - Trying to get property of non-object - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php - at line 27 [] []  
[2017-04-21 17:21:54] mautic.WARNING: PHP Warning - Invalid argument supplied for foreach() - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php - at line 27 [] []  
[2017-04-21 17:21:54] mautic.ERROR: SymfonyComponentDebugExceptionFatalThrowableError: Type error: Argument 1 passed to SymfonyBundleFrameworkBundleTemplatingHelperFormHelper::errors() must be an instance of SymfonyComponentFormFormView, null given, called in /home/salesxpro/domains/salesxpro.com/public\_html/master/app/bundles/CoreBundle/Views/FormTheme/Custom/sortablelist\_row.html.php on line 31 - in file /home/salesxpro/domains/salesxpro.com/public\_html/master/vendor/symfony/framework-bundle/Templating/Helper/FormHelper.php - at line 205 [] []

Any help where is the problem and how to fix it?

Mauitc verion is 2.7.1.  
pHp 7.9.18

Thanks in advance for any help.  
Jordi

---

<div class="post-metadata">

**Author:** ![aposchry](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@aposchry](https://forum.mautic.org/u/aposchry)\
**Post date:** [July 6, 2017, 7:21am UTC](https://forum.mautic.org/t/error-adding-select-field-in-a-form/8274/3 "2017-07-06T07:21:41Z")

</div>

[quote]I have the same issue using Mautic v2.8.2. Any suggestion are appreciated.

Thanks  
Christo[/quote]

This was just a stupid beginner mistake…  
One just has to add values by clicking on the yellow label “Add a value”. Than one can save the form. 😃

Regards  
Christo
