# Custom form layout breaks when required input is not filled and submitted

**URL:** <https://forum.mautic.org/t/custom-form-layout-breaks-when-required-input-is-not-filled-and-submitted/24111>\
**Category:** General Discussion\
**Created:** [May 16, 2022, 5:01pm UTC](https://forum.mautic.org/t/custom-form-layout-breaks-when-required-input-is-not-filled-and-submitted/24111 "2022-05-16T17:01:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [May 16, 2022, 5:01pm UTC](https://forum.mautic.org/t/custom-form-layout-breaks-when-required-input-is-not-filled-and-submitted/24111/1 "2022-05-16T17:01:52Z")

</div>

I am creating themes for several of our custom forms and I noticed if an input is required but when it’s submitted with an empty input box, the layout of the form is all squashed to one sided column and it break up my custom form layout.

You can test it at [BTG Test Form](https://www.agwm.org/btg/test-form/)

Is there a way to keep custom layout intacted? I’m not sure if it because if alert string is too long for the column that it’s in breaking up the layout or the backend code.

Thank you  
Bill
