# Bug: Form Submitted Event display in wrong label

**URL:** https://forum.mautic.org/t/bug-form-submitted-event-display-in-wrong-label/2168
**Category:** Product Support
**Created:** [August 11, 2015, 12:07am UTC](https://forum.mautic.org/t/bug-form-submitted-event-display-in-wrong-label/2168 "2015-08-11T00:07:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kianabeauty](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kianabeauty](https://forum.mautic.org/u/kianabeauty)
#### Post date: [August 11, 2015, 12:07am UTC](https://forum.mautic.org/t/bug-form-submitted-event-display-in-wrong-label/2168/1 "2015-08-11T00:07:43Z")

</div>

Noticed this today - I have a hidden form that automatically submits on our order checkout process. i.e. [kianabeauty.com.au/\*/thank\_you](http://kianabeauty.com.au)  
  
  
  
In Shopify, I have a bunch of _if statements_ to check if a value is valid, else I won’t render the field. Here is an example snippet (in liquid html syntax).

Code:

{% if customer.email %}{% endif %}

  
Now the form submission work correctly: All fields are updated with the lead as intended so that there is no incorrect data entry with the form submission. But in the event that certain fields are not present (e.g. Phone Number, Address Line 2), all the values _shift up_ in the form submitted event in the lead page.  
  
 ![I68S8hS.png](http://i.imgur.com/I68S8hS.png)  
  
It isn't damaging from a data standpoint as this seems like a completely visual quirk, but should be noted in case form fields aren't placed in the \*exact\* order as originally directed by mautic.

---

<div class="post-metadata">

### Author: ![kianabeauty](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kianabeauty](https://forum.mautic.org/u/kianabeauty)
#### Post date: [August 11, 2015, 12:07am UTC](https://forum.mautic.org/t/bug-form-submitted-event-display-in-wrong-label/2168/2 "2015-08-11T00:07:43Z")

</div>

Noticed this today - I have a hidden form that automatically submits on our order checkout process. i.e. [kianabeauty.com.au/\*/thank\_you](http://kianabeauty.com.au)

In Shopify, I have a bunch of if statements to check if a value is valid, else I won’t render the field. Here is an example snippet (in liquid html syntax).

```auto
{% if customer.email %}<input id="mauticform_input_email" name="mauticform[email]" class="mauticform-hidden" type="hidden" value="{{ customer.email }}" />{% endif %}
```

Now the form submission work correctly: All fields are updated with the lead as intended so that there is no incorrect data entry with the form submission. But in the event that certain fields are not present (e.g. Phone Number, Address Line 2), all the values shift up in the form submitted event in the lead page.

![](http://i.imgur.com/I68S8hS.png)

It isn’t damaging from a data standpoint as this seems like a completely visual quirk, but should be noted in case form fields aren’t placed in the _exact_ order as originally directed by mautic.

---

<div class="post-metadata">

### Author: ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)
#### Post date: [August 11, 2015, 1:50pm UTC](https://forum.mautic.org/t/bug-form-submitted-event-display-in-wrong-label/2168/3 "2015-08-11T13:50:09Z")

</div>

This definitely looks to be a bug. I’ve replicated the error and logged a bug report:

[https://github.com/mautic/mautic/issues/773](https://github.com/mautic/mautic/issues/773)

Once a solution is created I’ll post back here and ask you to test. Thanks for bringing this up!

---

<div class="post-metadata">

### Author: ![kianabeauty](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@kianabeauty](https://forum.mautic.org/u/kianabeauty)
#### Post date: [August 11, 2015, 10:08pm UTC](https://forum.mautic.org/t/bug-form-submitted-event-display-in-wrong-label/2168/4 "2015-08-11T22:08:21Z")

</div>

Happy to bring it up, that’s the beauty of open source 😉

---

<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:58pm UTC](https://forum.mautic.org/t/bug-form-submitted-event-display-in-wrong-label/2168/5 "2020-02-02T22:58:55Z")

</div>


