# Template optios for possible

**URL:** <https://discourse.cakephp.org/t/template-optios-for-possible/9577>\
**Category:** Need Help\
**Tags:** help\
**Created:** [August 2, 2021, 7:42am UTC](https://discourse.cakephp.org/t/template-optios-for-possible/9577 "2021-08-02T07:42:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![officer89](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/officer89/32/2348_2.png) [@officer89](https://discourse.cakephp.org/u/officer89)\
**Post date:** [August 2, 2021, 7:42am UTC](https://discourse.cakephp.org/t/template-optios-for-possible/9577/1 "2021-08-02T07:42:30Z")

</div>

Where do I find the docs about all possible template attributes I can change when customizing a form template like in [Customizing the Templates FormHelper Uses](https://book.cakephp.org/4/en/views/helpers/form.html#customizing-the-templates-formhelper-uses)?

Thanks!

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [August 4, 2021, 4:43pm UTC](https://discourse.cakephp.org/t/template-optios-for-possible/9577/2 "2021-08-04T16:43:36Z")

</div>

You need to look at the default FormHelper in the cakephp core

> <https://github.com/cakephp/cakephp/blob/master/src/View/Helper/FormHelper.php#L88>

---

<div class="post-metadata">

**Author:** ![Jawfin](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jawfin](https://discourse.cakephp.org/u/Jawfin)\
**Post date:** [August 4, 2021, 9:29pm UTC](https://discourse.cakephp.org/t/template-optios-for-possible/9577/3 "2021-08-04T21:29:19Z")

</div>

So what Kevin has given you is the actual HTML element being generated. From there you can use any known attribute which that element accepts and pass it as a parameter in the form create control call.

For instance if your users table has a `full_name` field which is shown in the add a user template, you can fix the label and add a placeholder on that control: -

```auto
<?= $this->Form->control('full_name', ['label' => __('Full Name'), 'placeholder' =>__('Firstname Surname')]) ?>

```

Whatever property the HTML element supports you can put in that 2nd parameter array, like even changing the edit type to password `['type' => 'password']` or clearing the value loaded from the table `['value' => '']`

---

<div class="post-metadata">

**Author:** ![officer89](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/officer89/32/2348_2.png) [@officer89](https://discourse.cakephp.org/u/officer89)\
**Post date:** [October 8, 2021, 12:02pm UTC](https://discourse.cakephp.org/t/template-optios-for-possible/9577/4 "2021-10-08T12:02:38Z")

</div>

Thanks for yours answers! Helped a lot!
