AlexSilverman Posted December 1, 2014 Report Share Posted December 1, 2014 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]'); }); Quote Link to comment Share on other sites More sharing options...
Jan Posted December 5, 2014 Report Share Posted December 5, 2014 Hi asilver5, On Details page you can add fields as Hidden. On Results page you can hide columns with the last script of this post. Then you can do "document.getElementById" but fields are not displayed. I hope, it helps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.