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?
Helllo Nathan
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.
w3schools.com - HTML <html> Tag
https://www.w3schools.com/tags/tag_html.asp
kintone developer network - Secure Coding Guidelines
https://developer.kintone.io/hc/en-us/articles/212494698-Secure-Coding-Guidelines
Hi Yuzo,
Does this mean I can use pretty much any HTML tag/element?
Hi Nathan,
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.
https://www.w3schools.com/jsref/met_document_createelement.asp