increase the length of the options' text input
-
Michael Gibson
- No changes were found…
-
Michael Gibson
One workaround is to put javascript in the option's description that replaces the option's input element with a textarea element.
< elem.attributes.length; i++) { var attrib = elem.attributes[i]; if (attrib.specified == true) { newNode.setAttribute(attrib.name,attrib.value); } } parent.replaceChild(newNode,elem); } tagId=document.getElementsByName("extra.option.opt1")[0].id; transformTag(tagId); document.getElementsByName("extra.option.opt1")[0].setAttribute('rows','25'); document.getElementsByName("extra.option.opt1")[0].setAttribute('cols','50'); document.getElementsByName("extra.option.opt1")[0].setAttribute('maxlength','10000'); -
Michael Gibson
re-formatting :(
function transformTag(tagId){ var elem = document.getElementById(tagId); var children = elem.childNodes; var parent = elem.parentNode; var newNode = document.createElement("textarea"); for(var i=0;i<children.length;i++){ newNode.appendChild(children[i]); } for (var i = 0; i < elem.attributes.length; i++) { var attrib = elem.attributes[i]; if (attrib.specified == true) { newNode.setAttribute(attrib.name,attrib.value); } } parent.replaceChild(newNode,elem); } tagId=document.getElementsByName("extra.option.opt1")[0].id; transformTag(tagId); document.getElementsByName("extra.option.opt1")[0].setAttribute('rows','25'); document.getElementsByName("extra.option.opt1")[0].setAttribute('cols','50'); document.getElementsByName("extra.option.opt1")[0].setAttribute('maxlength','10000');
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.