# Mautic throws html code when selecting a default value ina form field

**URL:** https://forum.mautic.org/t/mautic-throws-html-code-when-selecting-a-default-value-ina-form-field/31214
**Category:** Product Support
**Created:** [March 10, 2024, 2:08pm UTC](https://forum.mautic.org/t/mautic-throws-html-code-when-selecting-a-default-value-ina-form-field/31214 "2024-03-10T14:08:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vishnumohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vishnumohan/32/1414_2.png) [@vishnumohan](https://forum.mautic.org/u/vishnumohan)
#### Post date: [March 10, 2024, 2:08pm UTC](https://forum.mautic.org/t/mautic-throws-html-code-when-selecting-a-default-value-ina-form-field/31214/1 "2024-03-10T14:08:07Z")

</div>

**Your software**  
My Mautic version is: 5.0.3  
My PHP version is: 8.1  
My Database type and version is:

**Your problem**  
My problem is: I am experiencing a strange problem while assigning a default value to the form fields. I am using a checkbox field and i am assigning a default value for it. But when i do that, it is throwing html code to the front-end. Is this a known bug in Mautic 5.0.3? could anyone help me with this?

Thanks,  
Vishnu

 ![Screenshot 2024-03-10 193505](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/71cad55272dba0f7baf24f742b8a3a8a7eff5cec.png)

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [March 11, 2024, 7:46am UTC](https://forum.mautic.org/t/mautic-throws-html-code-when-selecting-a-default-value-ina-form-field/31214/2 "2024-03-11T07:46:50Z")

</div>

Hi  
I can confirm this.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c85ab70c425d748d3ccbe1e62a6e89c0880793b1.png)

Do you wanna open a github issue?

> **[Build software better, together](https://github.com/mautic/mautic/issues/new/choose)**
>
> GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

---

<div class="post-metadata">

### Author: ![imihandstand](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/imihandstand/32/1499_2.png) [@imihandstand](https://forum.mautic.org/u/imihandstand)
#### Post date: [October 30, 2024, 2:10pm UTC](https://forum.mautic.org/t/mautic-throws-html-code-when-selecting-a-default-value-ina-form-field/31214/3 "2024-10-30T14:10:54Z")

</div>

I also have this issue, using v5.1.0

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [November 25, 2024, 9:59am UTC](https://forum.mautic.org/t/mautic-throws-html-code-when-selecting-a-default-value-ina-form-field/31214/4 "2024-11-25T09:59:04Z")

</div>

Fixed in Mautic 5.1.1 onwards
