Created
July 8, 2014 21:52
-
-
Save cheapsteak/951bd07b8c9170e79d6c to your computer and use it in GitHub Desktop.
Get Google Form field names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fields = {}; | |
[].slice.call($$('input[id^="entry_"]')).forEach(function (el) { | |
var name = el.getAttribute('name'); | |
var label = el.getAttribute('aria-label').trim(); | |
fields[label] = name; | |
}); | |
console.log(JSON.stringify(fields)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment