GlideElement - getFieldStyle()

Gets the CSS style for the field.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The CSS style for the field.

var fields = current.getFields();
for (var i = 0; i < fields.size(); i++) { 
  var field = fields.get(i);
  var name = field.getName(); 
  var value = field.getDisplayValue(); 
  gs.print(i + ". " + name + "=" + value); 
}