Jump to content

AlexSilverman

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. I have a Reports-Details datapage and want to access some of the field values that are not on the associated html page (so I can't do, e.g., document.getElementById). Since there are a lot of fields I want to access at once, I'd rather not type out each one individually. So instead of alert('[@field:field1_name]'); alert('[@field:field2_name]'); ... alert('[@field:field100_name]'); I want to loop through an array of the field names like this var a = ["field1", "field2", ... , "field100"]; a.forEach(function(element) { alert('[@field:' + element + '_name]'); });
×
×
  • Create New...