I have used an array of field names successfully for resetting fields and creating a table of values associated with export values. However, when set up in the following fashion the Array() approach does not work to show/hide fields. Where am I going wrong?
function ShowSEFields() //I have a counterpart function 'HideSEFields()'
{
var fields = new Array
fields[0] = "txtSE"
fields[1] = "cbo.SE"
fields[2] = "btn.Export.SellerEntity"
fields[3] = "btn.Copy.SellerEntityToBuyerEntity"
fields.hidden = false
}
PS: I always try to find the answer in the Scripting Guide and API reference before posting an inquiry.
// Loop through array of field name and set field to hidden
for (var i = 0; i < fields.length; i++) getField(fields[i]).hidden = true;