You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 += "";
sMU += "";
sMU += "";
sMU += "";
sMU += "";
sMU += "";
sMU += "";
sMU += "";
if (node.type != "hidden") {
";sMU += "
sMU += "";
sMU += "";
sMU += "";
sMU += "";
sMU += "";
sMU += "";
}
tab.push({
"Element": node,
"Type": node.type,
"Name": node.name,
"Value": node.value,
"Pretty Value": (isNaN(node.value) || node.value === "" ? node.value : parseFloat(node.value))
});
sMU += "
";
}
})();
The text was updated successfully, but these errors were encountered: