Last active
June 3, 2019 03:42
-
-
Save TemporaryJam/04ca85f21f560fe916a7c0b0da0ed088 to your computer and use it in GitHub Desktop.
Get comma separated list of forms from FormAssembly
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
names = $('.form-name'); | |
ids = $('.slds-text-heading--label'); | |
mod = $('.slds-grid + .slds-text-body--small'); | |
//Add <pre id="target"></pre> near top of page | |
$('#target').text(''); | |
for (var i = 0; i < names.length; i++) { | |
$('#target').text($('#target').text() + $(names[i]).text().trim() + ', ' + $(ids[i]).text().trim() + ', ' + $(mod[i]).text().trim() + '\n'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment