# Use createElement() to create fields other than button?

**URL:** <https://forum.kintone.dev/t/use-createelement-to-create-fields-other-than-button/184>\
**Category:** General\
**Created:** [January 16, 2019, 8:48pm UTC](https://forum.kintone.dev/t/use-createelement-to-create-fields-other-than-button/184 "2019-01-16T20:48:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 16, 2019, 8:48pm UTC](https://forum.kintone.dev/t/use-createelement-to-create-fields-other-than-button/184/1 "2019-01-16T20:48:09Z")

</div>

In the “Input date with button click” demo it shows the button being added with createElement. Are there other fields that can be created this way? If so, is there a list somewhere?

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 17, 2019, 1:16am UTC](https://forum.kintone.dev/t/use-createelement-to-create-fields-other-than-button/184/2 "2019-01-17T01:16:34Z")

</div>

Helllo Nathan

&nbsp;

An element (or field) can be created by specifying HTML tags in the document.createElement so please refer to the list such as below since I don’t think there’s a HTML tag list provided by kintone.

Though avoid using elements based on external input values like it is mentioned in the secure coding guidelines.

&nbsp;

[w3schools.com](http://w3schools.com) - HTML \<html\> Tag

[https://www.w3schools.com/tags/tag\_html.asp](https://www.w3schools.com/tags/tag_html.asp)

&nbsp;

kintone developer network - Secure Coding Guidelines

[https://developer.kintone.io/hc/en-us/articles/212494698-Secure-Coding-Guidelines](https://forum.kintone.dev/hc/en-us/articles/212494698-Secure-Coding-Guidelines)

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 17, 2019, 6:12pm UTC](https://forum.kintone.dev/t/use-createelement-to-create-fields-other-than-button/184/3 "2019-01-17T18:12:58Z")

</div>

Hi Yuzo,

Does this mean I can use pretty much any HTML tag/element?

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 18, 2019, 6:53pm UTC](https://forum.kintone.dev/t/use-createelement-to-create-fields-other-than-button/184/4 "2019-01-18T18:53:34Z")

</div>

Hi Nathan,

&nbsp;

Yes, I think so as long as you specify the name of the element since the createElement() method creates an Element Node with the specified name as the link below says.

&nbsp;

[https://www.w3schools.com/jsref/met\_document\_createelement.asp](https://www.w3schools.com/jsref/met_document_createelement.asp)
