Skip to content

Instantly share code, notes, and snippets.

@TemporaryJam
Last active June 3, 2019 03:42
Show Gist options
  • Save TemporaryJam/04ca85f21f560fe916a7c0b0da0ed088 to your computer and use it in GitHub Desktop.
Save TemporaryJam/04ca85f21f560fe916a7c0b0da0ed088 to your computer and use it in GitHub Desktop.
Get comma separated list of forms from FormAssembly
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