<p>I think you just can't: allowed field types seem to be hardcoded in <code>craft\fields\Table::getSettingsHtml()</code>.</p>
<p>See <a href="https://github.com/craftcms/cms/blob/develop/src/fields/Table.php#L215" rel="nofollow noreferrer">https://github.com/craftcms/cms/blob/develop/src/fields/Table.php#L215</a> for details.</p>
<p>You might create a CustomTable field that inherits the <code>Table</code> class and overrides its <code>getSettingsHtml()</code> methods to allow you custom field type, but that seems overkill. It may be easier to just use a matrix field instead of a table field.</p>

CC BY-SA 4.0
2020-09-14T17:42:11.447Z
2020-09-14T17:42:11.447Z
nstCactus
<p>I made my own, fairly simple field inside a Module for Craft 3.x.</p>
<p><a href="https://i.sstatic.net/GjpNz.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GjpNz.png" alt="enter image description here" /></a></p>
<p>What settings do i need to define to make it usable inside a table?</p>
<p><a href="https://i.sstatic.net/laePT.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/laePT.png" alt="enter image description here" /></a></p>

<craft3><modules><custom-field><table-field>
Use own/custom field inside Craft Table
# Use own/custom field inside Craft Table

(Asked by: username_0 on 2020-09-11)

I made my own, fairly simple field inside a Module for Craft 3.x.

[![enter image description here](https://i.sstatic.net/GjpNz.png)](https://i.sstatic.net/GjpNz.png)

What settings do i need to define to make it usable inside a table?

[![enter image description here](https://i.sstatic.net/laePT.png)](https://i.sstatic.net/laePT.png)

**Tags:** craft3, modules, custom-field, table-field

---

## 1 answers

### Answer by username_1 on 2020-09-14. Score: 2 | Accepted answer

I think you just can't: allowed field types seem to be hardcoded in `craft\fields\Table::getSettingsHtml()`.

See <https://github.com/craftcms/cms/blob/develop/src/fields/Table.php#L215> for details.

You might create a CustomTable field that inherits the `Table` class and overrides its `getSettingsHtml()` methods to allow you custom field type, but that seems overkill. It may be easier to just use a matrix field instead of a table field.


---

