# Form template customization

**URL:** <https://discourse.cakephp.org/t/form-template-customization/11301>\
**Category:** Need Help\
**Created:** [June 20, 2023, 7:27pm UTC](https://discourse.cakephp.org/t/form-template-customization/11301 "2023-06-20T19:27:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lamine](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@Lamine](https://discourse.cakephp.org/u/Lamine)\
**Post date:** [June 20, 2023, 7:27pm UTC](https://discourse.cakephp.org/t/form-template-customization/11301/1 "2023-06-20T19:27:44Z")

</div>

![Screenshot (41)](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/d/d9ce2e3d5e20200f9ab2bfea919e6fc5352b63a0.png)  
 ![Screenshot (42)](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/f/f311d7ab9860f229a60863d44ab29c5b021fb177.png)  
 ![Screenshot (44)](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/f/f17ce7b4255a9a4942c0d2dc4cbf87f2949121cb.png)

Hi everyone. I’ve trying to customize the FormHelper theme to suit Bulma CSS library.

Everything seems to be working except the error message is being displayed inside the email input instead of displaying it outside. As the email label name disappears from its place.

InputLabel has class=“label”, but that class isn’t rendered in the generated label tag.

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [June 21, 2023, 3:17am UTC](https://discourse.cakephp.org/t/form-template-customization/11301/2 "2023-06-21T03:17:25Z")

</div>

I believe your `inputContainerError` HTML should look more like your `inputContainer` HTML, not like the `input` HTML.

---

<div class="post-metadata">

**Author:** ![Lamine](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@Lamine](https://discourse.cakephp.org/u/Lamine)\
**Post date:** [June 21, 2023, 8:35am UTC](https://discourse.cakephp.org/t/form-template-customization/11301/3 "2023-06-21T08:35:35Z")

</div>

I’m not sure what do you really mean, but the themes are the same as the CakePHP default ones except a few extra divs and classes.

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [June 21, 2023, 5:06pm UTC](https://discourse.cakephp.org/t/form-template-customization/11301/4 "2023-06-21T17:06:50Z")

</div>

I looked up the default, it’s:  
`<div class="input {{type}}{{required}} error">{{content}}{{error}}</div>`  
Your version is missing `{{content}}`, which seems pretty critical; it’ll be the label and input field.

---

<div class="post-metadata">

**Author:** ![Lamine](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@Lamine](https://discourse.cakephp.org/u/Lamine)\
**Post date:** [June 21, 2023, 6:26pm UTC](https://discourse.cakephp.org/t/form-template-customization/11301/5 "2023-06-21T18:26:50Z")

</div>

I was following the the FormHelper doc which is kinda confusing. But have FormHelper.php as reference right now. Thank you very much.
