Hi, I've modified the formcontrols.js snippet to create an HTML report via a data URI. Helpful in my case where I needed to share form controls with a team. I also excluded hidden elements.
(function() {
var forms = document.querySelectorAll("form");
var sMU = "
Web form audit
";
sMU += " ";
for (var i = 0, len = forms.length; i < len; i++) {
var tab = [ ];
Hi, I've modified the formcontrols.js snippet to create an HTML report via a data URI. Helpful in my case where I needed to share form controls with a team. I also excluded hidden elements.
(function() {
var forms = document.querySelectorAll("form"); var sMU = "
Web form audit
"; sMU += ""; for (var i = 0, len = forms.length; i < len; i++) { var tab = [ ];
sMU += "
Form: " + forms[i].id + " " + forms[i].name + "
"; sMU += "if (node.type != "hidden") { sMU += "
sMU += "
"; }
})();
Wow, that does not read well. Try this: http://codepen.io/neodigm/pen/azRjdG.js
great script - very useful. many thanks!