@Override
	public void render(Document html, Element node) {
		
        Element inputNode = html.createElement("input");
        if (getCodedContentCollection() != null) {
            inputNode.setAttribute("data-codedcontent-default-val", value);
        }
        inputNode.setAttribute("value", value);
        inputNode.setAttribute("type", "text");
        
        // set coded content in ID, based on the parent's parent (parent is choice, parent parent is element)
        
        if (getParent() != null && getParent().getParent() != null && getParent().getParent().getCodedContentCollection() != null) {
        	inputNode.setAttribute("id", getParent().getParent().getCodedContentCollection().getId() + "_t");
        	inputNode.setAttribute("name", getParent().getParent().getCodedContentCollection().getId());
        } else {
        	String nextID = getTemplate().getNextGenericID();
        	inputNode.setAttribute("id", nextID);
        	inputNode.setAttribute("name", nextID);
        }
        node.appendChild(inputNode);
        // create a line break
        Element brNode = html.createElement("br");
        node.appendChild(brNode);
        
        childrenRender(html, inputNode);
	}